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.

I think I understand the two pretty well. And I've read both the 2017 and 1988 charters. The funny thing about charters is that you can put anything in them; the IDF's charter[1] is an exercise in frustration for anybody who knows literally anything about how the IDF actually behaves, and so for Hamas.

[1]: https://www.idf.il/en/mini-sites/our-mission-our-values/