First > physical action can not make a person genuinely loving in his or her character. It won't make a child humble and kind and trusting and depending on Jesus. Physical can not control spiritual, is what I mean. It can act like peer influence to get a child to conform to a culture.
My parents used spanking and the hairbrush on me. I just acted more carefully around them, and tried harder not to get caught. And away from my parents, I found out very easily who would stand up to me and who wouldn't, so I could do things I wanted to do.
I did the church things I was told to do, and got my ice cream reward . . . another corporal form of discipline, by the way

And then I would get away for the rest of the week, except for chores and schoolroom stuff. If one teacher stood up to me, I waited for and meditated on how I was going to have my fun with another teacher.
So . . . I was not being taught how to love, how to relate, how to feel for other people.
I understand that the corporal stuff in the Bible is meant to be in a culture where people love and obey God and love as family as the whole community bringing up their children. So, when there is a raised voice or a behind tapping . . . this can help to resist the child going the wrong way, but there is the example to keep winning the child.
The Bible says "God resists the proud" (in James 4:6, and also in 1 Peter 5:5). God can use physical parental discipline to help to resist a wrong person. But this can not cure a person's character.
In my case, I did not have godly love's example. My parents could be vocal to talk down about certain people. From their conceit I could develop as a bully, thinking it was fine to look down on certain students. And other students were also looking down on them, so I did not have people standing up for them. And if it was ok to look down on them, I supposed, it also was fine to pick on them and physically bully them. And I found that very entertaining, to be able to get kids squealing and crying.
We bullies went after the ones who were despised. So, possibly, we were part of Satan's bigger system of keeping other kids in fear of being despised . . . so they would go along with the selfish system, including of peer influence. And so the ones who conformed wound up smoking and drinking and other things of the so-called socially acceptable crowd. They hurt and destroyed their own selves maybe more than bullying could. And we see how even religious people's marriages can fail, because they have conformed but have not found out how to share in a close loving relationship. Instead they have allowed physical pressures, or fear of it, to make them conform.
I did change. I became a conformed religious screwball who did all the things I understood I was being told to do. But I did not know how to love. I was driven by fear of hell; so I stopped doing the bullying and tormenting teachers and killing animals and birds. Therefore, fear of hell, also, did not result in me learning how to love.
We need example. But there is a lot of anti-example stuff. An example of God's love is gentle and humble and kind. But humans can tend to want excitement and accomplishment and beauty discrimination. So, people can find a kind and quiet person to be boring. Comparison, competition, and conquest are favored over being pleasing to God in His love's "incorruptible beauty of a gentle and quiet spirit, which is very precious in the sight of God." (in 1 Peter 3:4)
Showpiece people, even in churches, are preferred. You don't even get to know them so you can feed on their example which, of course, may not be there for you.
But God is quiet . . . never silent. We can be with Him and share with Him in His gentle and quiet love. And if we are an example of this . . . which is in the sight of God > God will use this, spread this to make others His way. However we really are in the secret place of our hearts, this is what can be spreading to make others, including our children, the same way.
Therefore, someone using physical punishment can be teaching the child to use force in order to use people. And if the parent fears religious peers, their fear of not conforming can spread to the child so the child then goes along with peers. But the child can end up with drugs, while the parent has gone along with charming but also emotionally harming religious thugs.
Your ways can come out in different ways, in your children.