I know software engineers in SF that don’t even consider trying to buy a house there. I also know generationally wealthy folks who rent from the same building I do in NYC.
NYC and SF are major outliers in this discussion - in my experience, home ownership isn’t as much of an inherent end goal there as it is elsewhere in NA.