I would overwhelmingly prefer being caned to being imprisoned for a year, and I expect most people would share my preference, but the one is considered cruel and unusual and the other is considered normal.
Opt-in corporal punishment is a sensible approach. https://x.com/travis4nh/status/1910690430431244651
But see also arguments that corporal punishment is much worse than many who share my view have in mind. Example description here:
https://x.com/ReliefBelief/status/1910756644478476631