You're right, there is no undo button for unnecessary prison time. However, given the choice, I'm sure the innocent people that were essentially murdered by the state would have preferred the option or time and compensation.
The death penalty is barbaric. There is no acceptable argument for it's existence.