Palestinians that were ethnically cleansed from their homes can’t vote in the state that was created on top of Palestine, so it’s not really a democracy.
Even if you see it this way, it's not a prerequisite for being a democracy. Athens were a democracy, USA were a democracy before 1865. The point here is their rulers are not above the law and they have their own judges to persecute them