The two situations are not comparable.
The Coalition gave Iraq plenty of warning that they were coming while the Japanese just turned up one morning unannounced.
What I find a much more interesting question is the justification of the atomic bomb.
Judging by the 1945 decision, if someone wanted to invade the US but was concerned by the number of casualties this would cause, would it be acceptable to nuke them into submission?
