The part that isn't visible by reading a simple one-line comment describing the interaction is the reality of dealing with patients in almost any kind of practice. I cannot properly convey the experience here. For one, I am just an observer. Here are a few points that seem to come up with some frequency during our "How was your day?" conversations:
Patients, just like doctors and engineers, are in a range between good and horrible. Some work with the doctor, follow directions, take the medicine/treatment and make progress. Others are the opposite, they keep coming back with the same issues (and often more) and, when interrogated, doctors discover they completely ignored (or worse, modified) what they where told to do. This kind of thing is truly frustrating. To put it in CS terms, imagine telling a junior developer how to fix a problem that has been compromising a codebase, only to discover, a month later, that the developer ignored your advice and decide to change variable names instead, because an article on the web said short variable names are better. Bullshit example, yet not too far from medical reality sometimes.
At the extreme are patients who are uninformed, rude, entitled and combative. It seems my wife comes home rattled once every couple of months after having to deal with a complete asshole who ruined her day.
With regards to information, yes, of course, she absolutely prefers informed patients. Why? Because those often turn out to be the good patients she can really help. The "Your google search..." comment isn't a universal statement delivered to anyone who says "I read on the web...". No, that isn't the case at all. She tells me patients do come-in who have done their homework and contribute valuable information to the process. These patients are actively engaged in the process.
There's a vast difference between being informed and engaged in what's going on and reading a few things in social media and actually thinking you know what you are talking about. People insisting on getting antibiotics for just-about everything is one example of this.
Those who receive and deserve the put-down are zero-effort, zero-knowledge patients who, after having read something on the web --which is often irrelevant or way out there-- come to the doctor absolutely convinced that is THE way to handle whatever it is might ail them. These patients are often in the combative, arrogant, rude category. The often require what my wife calls "The New York attitude" treatment. In other words, you have to forcefully (not physically, of course) assert yourself or you can't help them.
As an example, imagine someone coming in asking for a prescription to some ridiculous medicine to be protected from COVID and, at the same time, refuse to get vaccinated because they believe the government injects you with microscopic radio transmitters that track you. Yes, this is an extreme example, of course, however, it is hard for someone not dealing with dozens of patients a day to imagine the range of situations a doctor encounters on a daily basis.