You need to measure purchasing power using PPP rate, but even still NY and SF known to be expensive areas with high tax rates.
SF engineer could earn 200k year but this money could be much low as 80k in another state if you compare purchasing power.
It's complex. The Americans can always buy a car but never foods. This become a meme in my home country.
There are always trade offs.