If you don't want them to hit people & you want them to deal with problems rationally & intelligently, you should model that behavior. Hitting them isn't making them better people, it's only repeating the cycle that made you someone who hits kids.
And sure, you can resort to the "you can't understand" argument like I haven't been a kid, like I haven't seen my friends & family have kids, like I haven't seen the results of their different appraoches, like I haven't studied the subject to prepare for kids, & like I just can't fathom how exhausting the whole process can be. But it's just an effort to escape having to actually deal with the issue.
Parents who regularly resort to similarly authoritarian trump cards "It's not your house" "Because I said so" "You're too young to understand" are teaching their kids to make arguments from authority rather than to actually have well thought out reasons for what they do.