Spanking is something that should be in the toolkit of parents
Why?
You can raise kids without it. It is just an all too convenient shortcut.
Maybe if you have unlimited time to do nothing but child discipline. If you're a parent whose child continues to misbehaves while you're in the grocery store doing the shopping, a single sharp rap on the bottom makes far more sense than a fifteen minute timeout.
It is illegal in 44 countries and that has resulted in spanking being socially unacceptable in about 30 in which parents generally manage to make decent people out of their children anyway (the rest are joke bans like Turkmenistan and South Sudan etc.).
(map slightly dated, so a few countries are missing)