They wanted to keep all the land they had gained imperially (Taiwan and some other land, I forget offhand). Which was essentially an "OK, we lose. But we get to keep everything we took before we lost." which was denied by the Soviets and would have been denied by the US.
The issue being glossed over is that anyone speaking against the war or saying Japan would lose would be murdered by fanatical military leaders. If you were against the war, you were against the Emperor and Japan. A traitor.
Civilian deaths are not justified by political military conquest. Especially when any civilians who speak out against the political military conquest are killed. That's a lose:lose scenario for the civilians and I don't see how anyone could morally justify such a choice.
"Die going against your country or die because of it." is hardly a choice...
Arguably, the US was right. If I understand correctly, the US was determined to break Japan's militaristic social organization, to prevent another war. They needed unconditional surrender to do so. And, in fact, Japan has not been aggressive after World War II. They didn't re-arm and start another war, with hundreds of thousands of more (at least) casualties.
So the moral calculus is really not as simple as what you say.