I think most people in EA(such as high impact medicine) thinks researching is more important due to it can affect more people and have counterfactual facts effects(you won't increase the amount of doctors in rich countries). However, is there an estimation comparing values of one researcher and a doctor? I think a doctor may also have big impacts due to:
1.some doctors are better than others. They may spend more time with patients and
2.Though medical research affects billions of people, but there are also millions of people working on medical research, unless you're a top researcher, your personal impact would not be big because you only have little contribution.