You're painting with broad-strokes here which comes off as disingenuous, I presume that's not your intention but it calls into question your understanding of the history between these states being laid bare.
I suggest reading Hamas' 2017 charter in full for proper context.