One might argue that the lingering radiation effects made atomic weapons worse but, on the other hand, the firebombing would've been done more than once. Really six of one, half a dozen of the other, except you don't see that many people bringing up firebombings as a war crime.
(And I'm not limiting this to the circumstances under discussion -- I'm talking about the view that, no matter what situation you're in, there should be a way out that isn't a crime. Such people will, for example, object violently if somewhat incoherently to the fact that, under Qing Chinese law, a man ordered by his father to commit a crime had no way to get out of that situation while following the law: following the order is illegal, but so is disobeying the command.)
Complicated Chinese (and Japanese) laws about legal and familiar duty are really not the subject under discussion here, but a red herring. Murdering innocent people is an entirely different matter.
Finally, consider there are many people in this world who won't commit some crimes -- such as genocide -- even if there is no way out and refusing will cost them their own lives.
Yes, this viewpoint is more or less the opposite of the viewpoint I describe above, and it is also common. But so is the other one.
I'll take a stab at it.
If one sums together the estimated deaths in Asia caused by Japan (https://en.wikipedia.org/wiki/World_War_II_casualties), both military and civilian, one gets totals in excess of 15-22 million. This compares to about 5 million dead in the Holocaust. So basically, Japan effectively committed 3 to 4 Holocausts, a fact not often remarked upon in these discussions. If we compare that to the roughly 0.25 million estimated dead from Hiroshima and Nagasaki combined, the US would have had to drop 40 more atomic bombs to catch up to the Germans and another 120-176 atomic bombs to catch up to the Japanese. (If one likes, they can subtract out military casualties or otherwise adjust the numbers but the ratios are still high.)
One should also factor in that the Nazis simply executed the majority of the victims of the Holocaust as efficiently as they could in concentration camps. The deaths inflicted during the IJA occupation, on the other hand was accompanied by rape and by torture, including on children, across significant parts of a continent. It's notable that even a diehard Nazi who was in China was so revolted by what he was witnessing that he intervened to protect civilians from the IJA: https://en.wikipedia.org/wiki/John_Rabe. Given the option, it doesn't seem unlikely that many of the IJA's victims would have preferred a death by nuclear blast; at least it would have been impersonal.
So, were Hiroshima and Nagasaki war crimes? I think it's not unreasonable to say that even if they were, they were negligible in the grand scheme of things.
For example, rape and murder against German civilians is not morally justifiable just because the Nazis were horrendous monsters.
2. Invade. The Japanese had 900,000 troops in Kyushu, plus militia forces. Japanese estimates were for 20 million deaths. Look up the battle for Okinawa some time.
3. Let the Soviets invade. Same deaths, just not US soldiers. Plus Stalin didn't like to give up territory the Soviets conquered.
4. Continue the blockade, with or without conventional bombing. Likely, the Japanese government would have surrendered or collapsed by mid-1946. Again, millions of deaths due to starvation. And civil war.
Instead the US occupied Japan and forced cultural changes upon them, which resulted in Japan becoming a democratic, peaceful economic power and tremendous contributor to the global economy and both global and regional stability.