I found this an interesting read. How hamas is deeply embedded in the fabric of Gazan society. Its an older article, not one Ive seen shared and helps to explain why Hamas hasn't gone.
https://themedialine.org/top-stories/how-hamas-still-holds-power-in-gaza-more-than-2-years-into-the-war/