Hamas is not surrendering. They are still launching rockets at Israeli civilians. Hamas is the face of Gaza. Yes, it's their decision not to surrender. They have agency there.
I'm not defending Israel's actions nor their people for not revolting against their government. But I'm also not defending Hamas or the people of Gaza for not revolting against them.