In what situations would rehabilitation work best for the criminal rather than a long prison sentence or capital punishment, and vice versa?