Was kinda strange (and ineffective) at that age, but totally better than in school suspension.
I opted in for it twice (uniform code violations) over iss until my parents said no, he should go to iss, he's not learning his lesson lol.
As a kid I was spanked a few times, it was never that the spanking that hurt, just the fear of getting in trouble.
Conflating spanking with "hitting" seems disingenuous.
Personally some people I interact with today should have been spanked, or raised better in general.
And no I'm not talking about not violating dress codes etc, it's fine to break the rules if you're not hurting anyone. But there's a lot of bad people that would have benefitted from discipline.