The exchanges turned so sharp that Mr. Trump said talking to President Vladimir V. Putin of Russia was more pleasant.