I believe that any morally-guided person (aka: Good Person) should preface any statement on the Israeli-Palestinian conflict with:
"What Hamas did was unacceptable. It was terrorism and nothing, NOTHING justifies terrorism."
If you are not coming from that perspective you are part of the problem.
You are comfortable with "whataboutism".
You will convince yourself that you understand the problem and believe you understand the solution as well.
Be a good person first.