Sorry for jumping in.
I find it absolutely astonishing to have this conversation in 2023.
People are not to be beaten.
Much less: small people with fragile bodies and souls.
This is also not a question to be determined by the parents' judgement. It is child abuse, even if it is "justified" or "not too painful".