I’m not entirely sure what you mean by doctors “judging” you.
I’m a doctor, and I have opinions on every single patient I see.
Most of the time it’s a fleeting thought - a patient is straightforward, has a problem, wants it fixing, has some questions, takes the tablets or whatever - I barely think about these situations.
Other times I see patients about whom I have strong opinions. Sometimes I like them, sometimes I dislike them, sometimes I’m saddened by their misfortune etc. If I saw someone with an easily treatable cancer who refused treatment, I would think they were rather foolish. If they had kids then I’d think they were selfish.
But whatever they do, whatever path they choose, I never ever let my patients know my opinion. I simply state the facts as they are, and allow them to make their own choice. I make sure the patient is fully informed of the pros and cons of whatever decision they are making . Then I’m done.
So yes, a doctor will judge you, in their own mind. But a good doctor will not share those thoughts.