We have changed a lot as a society once all has been said and is now out of the way, and the reason behind this is that our opinions have started to differ due to a more balanced understanding of the world that we are living in at this current point in time. This has lead to changes in many areas which discipline in schools being changed quite a bit. Whereas previously kids used to get beaten at school whenever they stepped out of line, nowadays this is the kind of thing that would result in some kind of a lawsuit that could be levied on the offending school.
That said, it is important to note that while corporal punishment no longer occurs in school, there are still rather toxic forms of punishment that need to be avoided at any cost. For example, none of the top elementary schools in Roanoke, VA would punish kids for misbehaving. This kind of behavior is usually the result of some kind of underlying issue which means that the child in question should receive counseling and support rather than being sidelined and being made to feel like they are somehow less than their peers simply due to the reason that they have trouble following the rules.
Schools should become a lot more tolerant of rule breakers. These kids need to be given the advice they need to become better human beings, and just punishing them without doing anything else would result in these patterns emerging time and time again. You should only send your kid to a school that has a supportive environment, one where everyone works together as a community and positive values are fostered so that your kid can learn them.