As far as Japan is concerned, the theories about how they would have fought for every house, etc. are false.One of the most astonishing facts about the Pacific War was how few Japanese soldiers ever surrendered to the Allies (before the war officially ended). The Japanese sense of honor demanded that they fight till the end and never surrender. I no longer have the exact number, but IIRC, the total number of captives was less than a few thousands. Compare that with the number of German, Italian, Croat, Romanian, etc., prisoners taken.
This was so extreme that on Saipan, Japanese troops murdered ethnic Japanese civilians by forcing them to jump off cliffs to their deaths.
The Japanese were trying to negotiate a surrender even before the first atomic bomb fell.
One minority faction was. Bear in mind that, even after the first fission bomb fell on Hiroshima, they still didn't surrender. It took another bomb to force them to quit.
Also, even before Hiroshima, the Japanese has already trained millions of civilians to fight against the Allies. Many were expected to use nothing more than bamboo spears. BTW, as I recall, the Japanese government expected ten million Japanese civilians to die fighting the invasion. The US expected to take up to one million casualties.