The current charter specifically makes a point of saying that that’s not what they want though. Makes a point out of dragging a distinction between Jewish people (they don’t have a problem with) and the Zionist project (which they do have a problem with
At the same time Israel was releasing Palestinian “prisoners” (largely children and largely imprisoned for petty crimes like throwing stones) they were capturing and imprisoning from the West Bank (where there is no Hamas) roughly the same number of people as they were releasing in Gaza.