I suppose it is remotely possible I have misread your short reply. If so, I do apologize.
Look at the historic record for the end of WWII in the Pacific. Invasion of the Japanese homeland was a very grim prospect.
The bombs fulfilled their purpose, and arguably saved millions of additional lives. They were the lesser of two evils in this case.
The typical irrational "anti-nuke at all costs" hysteria that developed later does not take this into consideration.
But somehow that anti-nuke attitude doesn't seem to apply to petty tyrant-run countries like Iran and N. Korea.