Why doesn t Hamas surrender in order to stop the bloodshed in Gaza ?

Why didn’t the Jews surrender in the Warsaw ghetto uprising against the Nazis?
Why didn’t Algerians surrender to their French colonizers in their war of independence?
Why didn’t black people surrender in apartheid South Africa?
Why didn’t Vietnam surrender to the US?
Why didn’t Afghanistan surrender to the US?
There is no Hamas in the West Bank; why are Palestinians murdered by their Israeli occupier there?
There was no Hamas until 1987. Why were Palestinians massacred, butchered, and ethnically cleansed by newly arriving European Jews in the years prior, especially in 1947–1950 and in 1967?
The root cause of the problem is Zionist settler colonialism; it is Israel, not Hamas. When you murder people, massacre them, steal their lands, oppress them, ethnically cleanse them, and install a system of apartheid, the people will not like it and they will resist; that is the natural order of things. Israel was not minding its own business, and Hamas just decided to hate it out of the blue. Get your facts straight, stop spreading nonsensical Israeli propaganda, and wake up to reality.