This sort of already exists in Vancouver, BC, Canada. There is more to it than just salary, but there is a huge gap at the neighborhood level.
“ But zoom in to the neighbourhood level — what Statistics Canada calls “census tracts” — and you’ll see that life expectancy can vary by as much as 30 years.
The area with the lowest life expectancy is the Downtown Eastside, where the average resident is expected to live 60.2 years.
The area with the highest life expectancy is the University Endowment Lands, where the average resident is expected to live 90.4 years.”
https://thetyee.ca/News/2022/01/17/Life-Expectancy-Gap-30-Ye...