I don't think it's so much about "affluent suburbs" having "great" schools and some places having very bad schools. I grew up in an upper middle class Virginia county that nonetheless spent less than the national average per student on education (back when Virginia was a red state), but had well regarded schools. I think in most of the country, if you live in a community where nearly all the kids parents are married, the schools will be fine, even if the places aren't "wealthy" or don't spend a lot of money on education.