Personally, I agree. However, this could also depend on the level of the grave offense. Incarceration is definitely a punishment where the detainee has ample time to contemplate on his wrongs and with added activities provided by the government in prison, he can think things out. Corporal punishment may be applied to those highly grave offenses like having killed a person since sometimes it's the physical pain that knocks some sense out of people, rather than solitary confinement.