A small percentage of Gaza are Hamas and fighters. The vast percentage of Gaza support Hamas and thus are part of the war machine. They have been raised from birth on hatred of Israel and Jews. A military can not function without the support of the civilian population that grows the food, makes the arms and provides young indoctrinated men and women to take up arms. It is sad this is such but this makes them legitimate targets.
Hiroshima and Nagasaki had some but not much military significance. It was mostly civilian. In effect it was a terror raid. We demonstrated to the Japanese that we were willing and capable of destroying their total society and millions if they did not surrender. It worked and oddly saved Japanese society and millions on our side if we had invaded Japan with conventional weapons and troops. They were prepared to fight to the end but the atomic bomb changed their minds.
If you are not willing to kill your enemy and all that stand with him, “surrender for he has already defeated you.” “Cry havoc and let slip the dogs of war.”
Although I do object to your calling the atomic bombing a "terror raid". It implies the US forces were terrorists.