Depends on what you mean. Sidney, Nebraska, for example, doesn't really have "bad neighborhoods" in the NY or SF sense. But it's still a small town in Nebraska. Not a dying one, though. And you can get a non-trashed - by NY standards - 3 bedroom house for $120K.
So, what do you actually want? Do you have to live in NY or SF, or can you live in flyover country? You can buy out there, if you're willing to live out there. If it were me, I'd consider taking 20% less Silicon Valley money for full remote (if I could get that), and live where I could buy something.
> So, what do you actually want?
This. Also, not everybody wants the same thing, so there's no single universal solution.
I live in the big city because I enjoy going out dancing, having a drink at a bar with a bunch of acquaintances, coming home late at night, etc., all without having to sit in traffic or in transit for more than one hour each way. If I lived where my parents live (which I actually did for a few months at the beginning of the year, so I know), my social life would be dead.
My sister, on the other hand, lives in a big-ass house with a larger yard than her dogs know what to do with, which cost less than my apartment. She doesn't care about going out, neither does her SO; they're full WFH, and the school bus picks up her kids from their front gate. Their setup works great for them.
And it is also a matter of age and stage in life. I enjoyed living in a big city (Bucharest) for the parties and socializing (in my 20), dancing (Casa de Tango) in my 30-40, with schools nearby. Now I sometimes work from a house in the mountains next to the Ukraine border, my neighbors are hundreds of meters from each other, the nearest supermarket is 15 km away (15 min drive) and a family of deer live in my outer yard.
I mean that higher end jobs don't want to be in an area where they don't enjoy. They are the higher tax payers and they want to enjoy their lives far from the kind of people that live in rent controlled housing - there are differences in education, culture, habits that make people want to separate. Not elitism or something like this, just living with similar people. Whatever we want or say, people are different, not identical, not equal as potential friends and buddies.
Well, in Sidney, you won't live next to rent controlled housing type people. (At least, there won't be many, and you can pick a place where you don't.)
But you won't live next to people who are similar to you, either. (Though that dirt farmer's land may be worth more than your startup...)