I can't find who shared this to boost their post, but this should be read. I think it is light on the history of Japan suing for peace starting in April, trying to get the Soviets to mediate. Japan wasn't in lockstep on a path to suicide, like this article implies, and I feel the timing of the bombs was to allow Soviet observers to see the devastation themselves. But, here is the article:
https://www.thenewatlantis.com/publications/why-were-they-dropped