There is a huge difference between offering to treat only those whom you like, and offering to do only the types of procedures you believe are "good".
We have rightly outlawed the former for many categories of supposed goodness/badness. But forcing people to start performing new treatments that are the societal cause du jour that would not previously have been part of their job description is quite arguably federalized slavery. The goalposts will never stop shifting, so either swear eternal and unwavering fealty to the state or go find a different job?
It's quite rich when a forum of techies who mostly can find a well-paying job doing almost nothing of lasting value for anyone can find time to judge medical professionals who improve people's health on a daily basis because of a difference of opinion about the job description of those healthcare professionals.