But by that point in WW2, the US was pretty confident that it would defeat Japan.  The atomic bombs were dropped to avoid a potentially costly invasion, and to end the war before the Russians could reach Japan and spread their influence.  Imperial Japan did some awful things, but those actions by themselves could never morally justify the indiscriminate slaughter of 50,000 civilians.