It was one thing when my parents smacked me, open-handed, once, when I was very young for a minor infraction.
It was another thing entirely when I was ten years old and my mother “gave me a clip on the ear” or slapped my face or beat me with a belt for a minor infraction. I was 10. I was reasonably mature for my age, and corporal punishment did nothing but build resentment, which spilled over into my late teens and early 20s. My mother and I have had to work to be “family” again, because I was so angry for the myriad of things she’d done to me. (But that’s another thread entirely.)
On the few occasions where my mother took away a privilege, or sent me to my room to cool down, I was much more likely to try to see things from her point of view, because I didn’t explode into this volcano of rage because she’d hit me.
My husband had a daughter who didn’t like to share when she was young. He told her that she did not have to share with her playmates, but she should not expect them to share with her if she wasn’t going to reciprocate. She thought about it and decided she would share. She may have been unusual for her age, but it was a better response (IMO) than spanking first and asking questions later.