> I think this is exactly backwards.
No it is not. States and corporations are bound by law and to a great extent by public opinion while smaller communities are much freer to tyrannize their members.
Being part of the same "community" didn't stop school segregation in the south, the federal government did.