Medicare patients in U.S. hospitals were less likely to die when their doctors were educated outside the U.S., according to a study by researchers at Harvard University.

The study, published in the journal BMJ, examined more than 1.2 million hospital admissions of Medicare patients between 2011 and 2014. It compared survival rates for patients of about 44,200 doctors who specialize in internal medicine.

Patients...