Stav dette: Election and rejection in the Midrash