In school and 99% of scenarios, physicality doesn’t do any good. But if you have a really young child, like 3-5, and they hurt another child or an animal and show no remorse, I think spanking is acceptable as a punishment immediately after the incident. They might have trouble with developing empathy and need to understand they hurt another being.