Mexico was a bright spot in an otherwise dreary deal market as global M&A touched a three-year low in the first half of 2023.