Holding elections with two distinct governments and a third one occupying both is not easy. Even Ukraine has difficulty holding a general election with only a portion of its territory occupied and a single government.
But yeah, I think, and I think most would agree, that an independent Palestine would defiantly be democratic.
There's a path to Israeli citizenship for Arabs living in east Jerusalem and Israel has de-facto annexed it. But Israel did allow the 2006 elections to happen there. I wasn't really aware of the details about 2021 but I think you forgot to mention that Hamas refused to allow the elections to take place in Gaza (and participate at all?). At the end of the day this is just another political battle tool. I think it would make sense for the Palestinians to have elections in the areas under their control, by insisting on extending those to areas not in their control they are making a political statement and trying to push towards the outcome they want to see. It's only fair that Israel pushes the opposite direction towards the outcome it prefers to see. There is still a dispute and the sides do not agree. If Palestinians were truly concerned about democracy they would restrict the process to the areas they control ("A" territory in the west bank and Gaza) which would make sense, i.e. give the people that live in areas under Palestinian control a say in who runs those areas, and wouldn't really make a statement as to what the eventual agreement would look like.
Show me a democracy where elections aren’t just another political battle tool. In anarchist circles there is even a saying: “If elections changed anything, they would abolish it.”
Of course the Palestinian governments are no different. Hamas wanted general elections because they thought they could gain more power. Fatah didn’t because they thought they would loose power. The game of politics happened and they had elections which were boycotted by Hamas and everybody (already in power) wins.
The onset of the Palestinian civil war is a whole lot more complected than to blame it on Hamas. Remember that the Irish also had a civil war after the 1921 treaty, and today both the North and the Republic are thriving democracies. The reality is that it is a whole lot easier to hold power in the modern world via elections (unless you are occupied, or otherwise exploited by a colonial power), and you have no reasons to believe that Hamas or Fatah or any governing body in a future free Palestine wouldn’t see that.
Hamas specifically came to power via elections, but hasn't held any elections since then under various excuses, so they clearly aren't champions of democracy.