If you are ever asked this question, or any variation of it, by someone who supports Israel, do not dignify it with an answer.
It is nothing but an attempt to distract from the obvious fact that for the best part of a century the Palestinian people have been living under the boot of an oppressive apartheid regime that is guilty of crimes that far exceed anything Hamas could ever even dream of committing.
Do not give the zionist fucks an inch.
Exactly this, you need to ground this type of argument in material analysis. Getting into a moral grandstanding contest with libs is an extremely pointless waste of time. Noone likes civilian (debatable how innocent you can claim israeli citizens are when they are actively participating in settler colonialism) casualties, what's the cause? How do you stop it? By dissolving the illegal state of Israel.