Exxon is buying rival Pioneer Natural Resources for just under $60 billion in an all-stock deal.