You cant verbally discipline someone if theyre unwilling to listen to you. At that point you either have the choice to ignore them or to turn to methods that they cant simply mentally block out. Whether that method is a spanking or taking away privileges they have that they care about.

Honestly, grounding them or forcing them to miss things they want to do is more likely to cause long term resentment than a short spanking that gets the point across.