Difficult to enforce =/= impossible to enforce
What about a state like Somalia, where the government can pass laws that in large sections of the country are merely theoretical?
I'd make a distinctions between laws that can't be enforced as a practical matters (like both the Somalia example and the spanking one) and laws that are deliberately written so as to make them unenforceable. I have no problem with the former, but the latter strikes me as a bit hypocritical tbh.
That's the problem with it I agree but is part of politics.