Lamentations 4:9 (ESV)

9 Happier were the victims of the sword than the victims of hunger, who wasted away, pierced by lack of the fruits of the field.

Death by the sword is quick and therefore better than the slow death caused by famine.