There's a fascinating Quora post answering this question. Here's a snippet:
Instead of using the word “defeat”, “The End of War” is the title. The bomb and the Soviets broke the treaty of neutrality to invade Japan. With this sequences of sad news, the government held a meeting with the attendance of the Emperor. Opinions divided, but the prime minister obeyed the sacred decision of the emperor to accept the Potsdam Declaration. His Jewel Voice was broadcasted and the Japanese army put down the weapon and the war was ended.
And in another comment in the post:
The first thing a Japanese person would think of WW2 is not the damage that the Japanese military inflicted, but instead the sufferings and sacrifices the common citizens went through to support their troops, and the realization that they were living a lie when finding out that Japan was not as strong and invincible as they thought they were against the world.