Oil erased an earlier gain after Qatar’s Emir spoke with US President Donald Trump about de-escalating the Iran war, fueling hopes for a resolution that could support energy flows from the Middle East.