Spanking reinforces the point that there is a time when you can lose your patience and it is warranted.
That doesn’t promote self-control which is what your child needs to know.
And you even added psychoanalysis of the parent... nice.