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/