Ironically, though, all of this would depend on Morsi not becoming a dictator like Mubarak, but on him remaining a legitimately elected president, truly representing the Egyptian people. That is now in doubt given Morsi’s very troubling power grab last week and the violent response from the Egyptian street. President Obama has to be careful not to sell out Egyptian democracy for quiet between Israel and Egypt and Hamas. We tried that under Mubarak. It didn’t end well.

Image Thomas L. Friedman Credit... Josh Haner/The New York Times

No doubt Morsi’s price for engaging with Israel would be the Arab Peace Initiative — full Israeli withdrawal from the West Bank and Arab East Jerusalem, save for mutually agreed-upon land swaps, and some return of refugees, in return for full normalized relations. If Morsi advanced such a proposal in direct talks with Israelis, he could single-handedly revive the Israeli peace camp.

Do I expect that? No more than I expect to win the lottery. The Muslim Brotherhood has long hated the Jewish state, as well as political and religious pluralism and feminism. Therefore, here’s what I do expect: More trouble between Israel and Hamas that will constantly threaten to drag in Egypt. Hamas is a shameful organization. It subordinates the interests of the Palestinian people to Iran (and earlier to Syria), which wants Hamas to do everything it can to make a two-state solution impossible, because that will lock Israel into a permanent death grip on the West Bank, which will be the undoing of the Jewish democracy and will distract the world from Iran’s and Syria’s murderous behaviors.

Israel left all of Gaza in 2005, and Hamas had a choice: It could recognize Israel, have an open border and import computers, or it could continue to deny Israel’s existence, keep the border sealed, and smuggle in rockets. It chose rockets over computers. With each rocket that lands near Tel Aviv or Jerusalem, another Israeli says, “How can we possibly let go of the West Bank and risk our airport being shut down?” That is just what Hamas and Iran want — a permanent, grinding, democracy-eroding, legitimacy-destroying, globally isolating Israeli occupation of the West Bank — and they are very happy to use the Palestinian people as a human sacrifice for that goal.

The best way for Israel to undercut Hamas is by empowering the secular Palestinian Authority, led by Mahmoud Abbas, in the West Bank to gain greater independence and build a thriving economy, so every Palestinian can compare which strategy works best: working with Israel or against Israel. This Israeli government has failed to do that. It is so shortsighted. But Hamas makes it easy for Israel to get away with that by ignoring what we know from history: that whoever makes the Israeli silent majority feel morally insecure about occupation, but strategically secure in Israel, wins. After Sadat flew to Jerusalem, Israelis knew there was no way morally that they could hold onto the Sinai and strategically they no longer felt the need. When King Hussein of Jordan and Yasir Arafat did the same, they each got land back. Today, nothing makes Israelis feel more strategically insecure and morally secure with occupation than Hamas’s stupid rocket attacks, even after Israel has withdrawn.