Help me understand how this justifies the collateral damage.

I am countering the parent's statement that seems to indicate the US and Israel are intentionally targeting civilian infrastructure systematically for no reason. A lot of this infrastructure is targeted for good reason because it is used for military purposes.

This is totally unrelated to the topic where it seems the one school in question was incorrectly targeted based on what we know today (though not intentionally).

The general framework for justifying collateral damage is that enough care has to be taken to minimize it vs. the value of the military objective being achieved. Attacking an IRGC headquarters intentionally based in a school (e.g. if the example in Syria was to be attacked by Israel for example) still needs to pass this test. I.e. Israel would have to take measures to minimize collateral damage which would be proportional to the military value it gains by hitting the IRGC. But the (Syrian) school would have been considered a legitimate military target and the outrage should be towards the IRGC setting up camp there.

To anyone responding to this be aware that this is one of the worst zionists we have on this website.