Hamas position makes sense up to the 1967 borders part but not the entirety of it.
My response to OP was in the context of how it was framed. One needs to go back in time to understand broader realities of the region but some will not like the answers. The (ill-advised) Arab - Israel War in 1948 concluded with Israeli victory and Palestinian Muslims loosing a chunk of their lands to Israel in the process:
View attachment 967130
As you can see, this war had damaged Palestinian cause.
From victory, comes the entitlement to do whatever you want to in the lands under your control (figuratively speaking). Israel had won the war and began to reshape regional demographics at some point.
US attempted to solve this issue with Oslo Accords in the 1990s that allowed PLO to recover and take control of some of the lands that were lost to Israel in war before.
Hamas was founded by the followers of Egyptian Muslim Brotherhood in 1987 and took control of Gaza in 2007 by force:
Hamas has been in power in the Gaza Strip since 2007 after a brief war against Fatah forces loyal to President Mahmoud Abbas, the head of the Palestinian Authority and Palestine Liberation Organization (PLO).
The group’s audacious Saturday attack on Israel has triggered a bloody bombing campaign in the Gaza Strip.
www.aljazeera.com
Hamas might be popular in Gaza but it seems to have no solution.
I am not excusing Netanyahu in this matter either - this man is a Zionist supremacist and is complicit in expanding Israeli settlements at the expense of Palestinian locals. Netanyahu uses Hamas as an excuse to do his bidding.
So what is the solution in your view? What shall be done? Can you bring both to the negotiation table now?
If these people want to fight and settle this matter in this manner, so be it.