Many, probably most people would argue that the death penalty is immoral. Similarly, soldiers killing soldiers is generally seen as immoral unless it happens as part of a genuine war of defense. On both accounts you can twist the numbers using framing, but there's really no inconsistency here.