At least where I was taught, death penalty reduces someone's punishment in the afterlife. So in a way capital punishment is a "mercy" because without it they'll be punished even more in hell.
Does it matter if the offender believes in tales of hell and heaven? Or is it just important for the people remaining in society how they think the penalty affects the offender?
So yeah, this perspective really depends.