Kinda depends on what one is yelling.
Spanking is good. Works on babies. Once they start talking, you can give that up.
From then on it's a 'game' to find out who is 'smarter'. The child has an open mind and is very hard to outwit. If you can't outwit them, falling back on physical punishment won't work.
Back to your comment.... I think you are correct. Spankings are over and forgotten in minutes. I used to look forward to spankings, because it was such a 'quick' punishment. My parents caught on rather quickly.
But words, especially words of hate and derision... those become darts that you store in a quiver. Eventually you will find someone to fire those darts at. Repeated phrases like "you are so stupid" have a cumulative effect on the sub-conscious.
Yelling also has the opposite effect that adults might think. The more one yells, the less others listen. They start associating the 'yeller' with 'things that make me feel bad and I ignore'.
This is how parents lose touch with children.
Spanking is good. Works on babies. Once they start talking, you can give that up.
Number six is for when your son reaches the “call dad out” phase.
Back around 1980 I was on a bike ride through Rainier Beach in Seattle and my buddy and I stopped at a 7/11 for something to eat and drink.
While we were there, a black mother came in with her three year old son. She was yelling at him and calling him worthless (yes, she used that word) and other derogatory names. My buddy and I talked about it and we learned from that experience. It is correct to tell a child that what they did was wrong or inappropriate. It is crippling to a child to condemn them, personally, rather than what they do.
I had three daughters shortly after that and applied what I learned.