A good case can be made either way. Attacking civilians is problematic. Even so, that's irrelevant to what I said - Pearl Harbor was quantifiable different from those two. There, the Japanese attacked no civilians but a military target instead. It was an act of war, to be sure - but war isn't per se immoral.
The civilians were given warning - more than we were given when Pearl Harbor was bombed.
The Japanese could have surrendered after the first atomic bomb was dropped.
It’s a question of whether American lives were to be lost in an invasion or Japanese lives were to be lost in a bombing. The Japanese figured we only had one bomb. They were wrong.