Well by that logic isn’t it Israel that initiated the war well before 10/07? Do they not bomb/raid the West Bank and Gaza indiscriminately? Have they not murdered hundreds of noncombatants this year alone. Before 10/07 there were over 6000 Palestinians taken hostage. Does that not enter into your calculations?
And since you brought up international law tell us what it says about the rights of the occupied and occupiers. Palestinian resistance can use any means necessary to end the occupation. Any force used by the occupier against the occupied is a war crime. Israel committed daily war crimes and you said nothing. Suddenly the resistance uses force and you have issue. You are what the world calls a HYPOCRITE