I would disagree strongly with that. What they are doing now is terrible strategy, nevermind tactics.and probably the only practical recourse Hamas had.
I think the basic problem for the Palestinians is that the rest of the Arab world doesn't really care about them.
Did we see Egypt and Jordan make the slightest effort to set up a Palestinian State in 1948-67, when they occupied the land?
And I've made the point about refugees. Saudi says, in very flowery language, that they won't admit any because they might be terrorists.
The other Arabs use the Palestinians as a stick to beat the Israelis and the West with, and care about them about as much as they do a stick.
Many of the Arabs want the Jewish State gone. They can't say that officially any more, so it suits their purposes to have an attack dog like Hamas, who explicitly do want Israel gone, to do it for them.
China, and to a certain extent Russia, use North Korea in the same way.
We should of course mention Deuteronomy 20.16-17 here, as to how the Jews came to occupy the area in the first place. Killing babies is not a new thing in Palestine, but it is now illegal under International Law.
16 However, in the cities of the nations the Lord your God is giving you as an inheritance, do not leave alive anything that breathes.
17 Completely destroy them—the Hittites, Amorites, Canaanites, Perizzites, Hivites and Jebusites—as the Lord your God has commanded you.