I wonder if on average the teachers in small towns are worse than those in the bigger cities?

An economist would say most likely. Bigger cities (that have more diversity) need better teachers, though. Of course, that doesn't take into a lot of factors. For instance, if a teacher-spouse worked in a bigger city but now works in a smaller town because of spouse.