Civilian casualties were not a huge concern when waging war for anyone (and certainly not for the Japanese military!) in that particular era so bringing that up is anachronistic thinking.
[1] https://acoup.blog/2022/10/21/collections-strategic-airpower...
Edit: the article link was https://blog.nuclearsecrecy.com/2013/08/09/why-nagasaki/
This is certainly wrong because the first bomb wasn't enough for them to surrender. In fact, the general didn't want to surrender at all and commited suicide after the emperor forced them to stop. It isn't clear under what other conditions Japan would surrender. In my view Japan would probably still control Manchukuo today if not for the bomb.
We can debate after the fact whether using a nuclear bomb was correct but the brutal Japanese regime had to be stopped immediately. We don't have the privilege of knowing the future when making difficult decisions.
It’s potentially very important to know that the terms of surrender changed after the dropping of the second bomb. The new terms allowed the emperor to remain. Which is a huge deal. Maybe the Allies could have offered that before dropping two nukes?
https://homework.study.com/explanation/why-did-japan-reject-...
I may have misremembered reading about this years ago. I don’t think the terms changed, but there’s an argument that if the US was more clear about the emperor’s position post-surrender, the Japanese would have surrendered much sooner.