Your analysis omits the fact that one side (Israel) is inflicting an illegal military occupation on the other (Palestinians). Hamas has a right to resist that illegal occupation; however, it does not have the right to commit war crimes during their resistance.
The UN Partition Plan allocated 56% of the land to Jews who were outnumbered 2:1 by non-Jews.
https://en.wikipedia.org/wiki/United_Nations_Partition_Plan_for_Palestine
"The plan was celebrated by most Jews in Palestine
[11] and reluctantly
[12] accepted by the
Jewish Agency for Palestine with misgivings.
[13][8]
"Zionist leaders, in particular
David Ben-Gurion, viewed the acceptance of the plan as a tactical step and a stepping stone to future territorial expansion over all of Palestine."
Ben-Gurion began planning the Jewish conquest of ALL of Mandate Palestine over a decade before the UN Partition Plan went into effect:
https://en.wikipedia.org/wiki/Plan_Dalet#Background
"In the summer of 1937, according to the official history of the
Haganah, the commander of their forces in the Tel Aviv area, Elimelech Slikowitz ('Avnir') received an order from
Ben-Gurion.
"Ben-Gurion, anticipating an eventual British withdrawal from the country after the
Peel Report, asked Slikowitz
to prepare a plan for the military conquest of the whole of Palestine.
"According to the historians
Walid Khalidi and
Ahmad H. Sa'di, it was this Avnir Plan which provided a blueprint for future plans.
"The blueprint was refined in subsequent adjustments (A, B, C) before emerging in its final form over a decade later as Plan Dalet."