This is due to casein in the milk binding to antioxidants in the coffee like chlorogenic acid, and making them less bioavailable (PMID: 21627318)
Dark roasting also destroys up to 90% of the good compound (PMID: 25014672)
The best bet for coffee drinkers is to use light or medium roasts, and either drink it without milk or use a plant-based milk.