This was literally the policy of the Japanese government - "The Glorious Death of One Hundred Million". Sacrifice every Japanese life to preserve the Emperor, and more importantly, his militaristic governments.
https://en.wikipedia.org/wiki/Operation_Downfall
There is a awful lot of moral relativism in these threads. Frankly, I strongly recommend that people who think that there was some sort of equivilent between the Nazis and the western powers, or between the Japanese and the Americans in World War 2 put down youtube videos, and really do a deep dive into what these states were really about.