the problem with that logic is that "rules of war" are a meme that require some mutual recognition. when hamas, along with hundreds of randos for funsies, began raiding villages the logic they used to defend was more or less > hey, their taxes pay for israeli apartheid, and they either murdered our children or will murder our children. the problem though is this is easily an "et tu?" justification for the campaign right now in gaza. like, the international community and palestinians are asking for israelis to have a sympathy they wouldn't really think of having for their opposition.  unfortunately for gaza, it's incredibly... negligent... to take this sort of approach against a much stronger force. the closest scenario in recent memory is probably japan. like when we began firebombing tokyo, we gave zero fucks because we knew what the japanese did to the lands they occupied.
United States