Their situation is still the permanent occupation/ apartheid
Hamas wouldn’t exist if there was no occupation. Yes they have absolutely done some abhorrent war crimes. Militant groups always gain support when Israel invades Gaza because they are the ones fighting back. If you want to get rid of Hamas, the way to do so is getting rid of the occupation and giving Palestinians equal rights, like it should’ve been in the first place.
Here’s some sources to learn more about the context