Either there will be a long, arduous, Israeli-led occupation of Gaza or Islamist militants will return to power there.