Death penalty with proper trial is more expensive than life-without-parole sentence, at least in the US currently [1]. I'm not sure if this means that non-death-penalty crimes are not inspected properly. In such system the only reason for the capital punishment is revenge.