Internet references conflating the two films drew anger in Japan, which was twice attacked by nuclear weapons during the second world war
It’s important to note that the nuclear program started as a race against the Nazis. Japan had no nuclear program during the war. Once the Nazis surrendered, there should have been no need to continue the development of the bomb. It was developed and then ultimately used on civilians, not once, but twice.
The Japanese did have a nuclear program that made little progress and was unlikely to be a threat.
Ultimately your use of the word “should” implies that Japan would not have fought out the battle on the main land. Killing civils is bad, saving millions of lives is good.
And if Japan hadn’t surrendered, it would have been used up to a dozen times.
The third bomb, and the others that may have followed, were a definitive part of the American strategy to end World War II. Although hopeful that nuclear weapons might end the war, American officials—from President Truman to his commanding officers—did not expect the war to end right away. Signs indicated that more atomic weapons were necessary, and U.S. leaders were rapidly moving to order more atomic strikes. Had the war continued, more atomic bombs would very likely have been used.