Google’s health research unit said it has developed an artificial-intelligence system that can match or outperform radiologists at detecting breast cancer, according to new research. But doctors still beat the machines in some cases.

The model, developed by an international team of researchers, caught cancers that were originally missed and reduced false-positive cancer flags for patients who didn’t actually have cancer, according to a paper published on Wednesday in the journal Nature. Data from thousands of mammograms from...