Stratification of American society is largely due to people fleeing violent and property crime, especially once they have children. There is considerable hysteresis so it’s not as simple as lining up cost of living and crime stats, but a “nice neighborhood with good schools” will be considerably more expensive all else being equal.