This is false. You're probably getting this idea second hand from this study: https://www.pnas.org/doi/abs/10.1073/pnas.1913405117
Probably because it was famously misused by SC Justice Ketanji Brown Jackson, who got it wildly wrong https://statmodeling.stat.columbia.edu/2024/06/14/statistics...
Anyway, that study is bogus: https://www.pnas.org/doi/abs/10.1073/pnas.2415159121
The only evidence for your claim that I know of is an NBER paper https://www.nber.org/bah/2018no4/does-doctor-race-affect-hea...
Where they randomly assign black male patients to white or black doctors, IIRC, and patients get advice on preventative care. Outcomes for black patients are better because they are more willing to take black doctors' advice. Obviously, newborns in the first study, so it's about doctor competence straight-up.