Some Israelis are taking inspiration from the Hungarians, who picked a former ally to succeed their longtime head of state.