That's ridiculous. They were invaded in Oct 7th it started a war. Hamas can surrender at any time. They're choosing not to. They're saying that the casualties they've suffered are acceptable. They choose when the war ends. They have continued to choose war.
And quite frankly they were poorly prepared for a war. They spent $0 on civilian bomb shelters, $0 on AA/Sam or other air defense, $0 on tanks. They were poorly prepared for the war they started and they shouldn't have started it. What's happening is the expected outcome when a modern army engages with a poorly armed foe.