[1] https://thebulletin.org/2020/08/counting-the-dead-at-hiroshi...
They had been firebombing and eradicating whole Japanese cities for days/weeks. (Another topic to discuss -- that the pressure was applied to the civilian non-fighting population, regardless of the method.)
The late Japanese surrender is a failure of diplomacy -- the two sides could not communicate and neither side could swallow the whole "emperor question."
When the Russians started moving and declared war to Japan, both sides gave up something: "unconditional" surrender and emperor got to stay and not implicated in anything related to the war.
See the whole background behind the following trials, where a lot of people either did not get prosecuted or chose to die instead of implicating the emperor in any way.
However… 70-80 million people died in WWII, or about 3% of the population of the world.
I don’t agree with using nuclear weapons. But… how many Japanese lives were spared with a quick end to the war? That’s not a justification, it’s the counterpoint to “we can never do x”.