A Doctor will take risk factors into consideration
Unfortunately we see that the data doesn't support this assumption. Poor populations are not given the same attention by doctors. Black populations in particular receive worse healthcare in the US after adjusting for many factors like income and family medical history.