Earlier quoted context omitted.
In that case Israel should follow New Zealand's example and allow all Palestinians to become citizens, with full rights, stop being an ethnostate for Jews, stop with the racism and start behaving like the progressive country they pretend to be.
Perhaps they ought to set up their constitution to have a military pledged to the maintenance of a purely secular state that will overthrow any overtly religious government, no matter the electoral margins they earned when getting installed.
That's an idea with a very bad history and no political legitimacy: What grounds does a general have to tell their neighbors what to do? Nobody voted for them. What stops the general from arbitrarily wielding that power?
Why vest that power in the military? A civilian institution could make the decision, such as a court interpreting a constitution.