The United States spent 20 years and a trillion dollars in Afghanistan building infrastructure, forcing them to allow girls to go to school, and telling them not to throw gays off buildings. And after 20 years we gave up, fled back home and the Afghans immediately went back to throwing gays off buildings, banning females from going to school and selling young girls into sex slavery.
Not a single country in the Middle East is "free" the way Westerners would define it. I was born and raised in Egypt under a dictatorship. When we finally had a chance to vote, the population elected the Muslim Brotherhood. We were arguably heading toward a theocracy until the military intervened. Now we're back under a military dictatorship. Those are basically your options - theocracy or military dictatorship.
Gaza had a somewhat similar experience. Israel withdrew its settlements and military presence in 2005, and when Palestinians had elections in 2006, Hamas won. They subsequently took control of Gaza and haven't allowed another election since.
I also have some personal experience with this. I eventually fled Egypt because, as an apostate, I genuinely feared being killed by my own family.
Salman Rushdie has written extensively about religious extremism, secularism, and the struggle for freedom in the Muslim world. He's also paid a very personal price for speaking out, including surviving an assassination attempt that left him seriously injured.
So my question is: Is Rushdie right? If Palestine were genuinely free, with no Israeli occupation or outside interference, would it become a liberal, democratic society, or would it end up looking more like Afghanistan under the Taliban?