The salaries in neither area match up to current housing prices, nor do they keep up with the increasing prices year over year. What I have observed is that housing prices going up by 20% usually results in salaries only going up by 8%.
After 5 years, houses cost twice as much but salaries are only 40% higher. And to see those salary gains you have to switch companies and risk being labeled a "job hopper".
The game is rigged for developers in most of the tech hubs. There is a reason so many of us opt out of it by working remote in low cost areas.