Pro tip: when you check anything about the US skip the average and go for the median, it's completely skewed by the top 5%
https://worldpopulationreview.com/country-rankings/median-in...
https://worldpopulationreview.com/country-rankings/median-in...
1. This also applies to Sweden
2. Even by median income US is higher than Sweden and even after adjusting for PPP, so you can use cost of living. US looks better after addressing your concerns.
What is the real salary once you substract retirement funds and medical insurance?
Those two cities aren't really in the same urban league. Compare Stockholm to, say, Miami or Austin.