We need not hide verses that speak of God killing whom He will. All of His judgments are righteous and true altogether, and the One who gave us life has the right to take it from all who sin (see 1 Sam. 2:6; Job 12:10). If God were to give humanity absolute justice, we all would be struck down the moment we sinned. However, He has extended His mercy toward us and let us live, giving us opportunity to repent (see 2 Pet. 3:9).
Deuteronomy 32:39 ‘Now see that I, even I, am He, And there is no God besides Me; I kill and I make alive; I wound and I heal; Nor is there any who can deliver from My hand.40 For I raise My hand to heaven, And say, “ As I live forever,41 If I whet My glittering sword, And My hand takes hold on judgment, I will render vengeance to My enemies, And repay those who hate Me.