There's a huge, if not gigantic, moral, ethical and tactical difference between nuking a city to avoid a larger, protracted war, and the killing of an innocent child for absolutely no fault of its. In the Amalakite example, the animals were killed, in addition to the children.
Yes, you are so right. Fortunately, at Hiroshima all the pets were spared via their tin foil collars.