I do agree that you hit kids you can expect them to replicate the behaviour, but it isn’t carved in stone.
My fantastic dad, who I love to bits, hit me and my brother in the name of discipline constantly when we were small.
We weren’t even that naughty, we used to get hit for doing kid things like getting crayon on the lino, or spilling our squash on the table.
He cannot talk about it now. He says the recollection of hitting such small children makes him feel physically ill.
He thought he was doing the right thing, he was 22 years old, it was the 70s. He was hit by his dad, and his dad was hit before him. I feel sorry for my dad, he is traumatised by it.
I’m proud that the cycle stops with me and my brother - neither of us hit children.