Vaporizing 140,000 civilians—mostly women, children, and elderly—is a war crime, full stop. Japan was already seeking surrender terms, and the bomb was more about flexing on the Soviets.
Japan wasn't offering real surrender and would've fought invaders to the death. Bombs ended it fast, saving millions more lives overall.