A military follows rules of engagement and does not use violence indiscriminately. Any violence is towards military goals, with civilian casualties only as collateral damage. It does not target noncombatants.
In contrast, the Oct 7th massacre did not target combatants and served no military goals, unless you count enraging Israel to trigger a war.
(2/2)