I don't really care on that... If they either keep their professional life and work life separate, or it doesn't affect it, then that's fine by me.
If they're anti-abortion and they work in an abortion-adjacent field, they're not going to be that great of a doctor in that field. If they're anti-abortion and are a specialist in ligament surgery, then what does it matter to me? If I'm just here to get my knee fixed as soon as possible then their opinion doesn't come into it, even if their opinion is disgusting to me, and they have a keyring, sticker or pin, I'm not endorsing or supporting it by interacting with them, and while I'd usually support boycotting, it's just not in my interest in that situation.