Who is correct Jeff (NIJIA Notes) or Becker for REG

For like kind exchanges on Jeff notes he is saying take the lessor of recognized gain vs boot received to get your Realized Gain but Becker says to take the lessor of realized gain vs boot received to arrive at Recognized gain. Who is correct????