A bit of refinement on that thought. In America, inner-city schools are mixed bag. If you live in someplace like Cambridge, schools tend to be good. Boston is a mixed bag. Same is true for other adjacent cities. However if you go to places like Westford, Newton, Wellesley which are very high earner high value properties, the schools tend to be consistently very good. Then you start moving into more rural places in Massachusetts like Pepperell, Townsend, Athol and again the schools are more like inner-city schools, underfunded and not very good quality.
I think the best way to judge the quality of schools by the opportunities the student's have as a result of going through the schools. The Westford, Newton, Wellesley schools are for winners of the birth lottery. Leominster, Townsend, Athol are for us birth lottery losers.