I find that, at least with dentists, the quality seems to be an inverse function of their experience.
I've gone through a lot of dentists recently (long story, but nothing to do with quality of dental work), and I've consistently found that the younger/"inexperienced" dentists use more modern/advanced[^1] techniques, whereas the older ones tend to favor sticking to what they learned in a medical school years ago, plus an occasional conference or such. As opposed their very foundation being based on more up-to-date knowledge.
[^1] Unlike in software, this often translates to "better", at least from my experience as a patient.
---
Apparently this is somewhat of a problem in computer science for 50-something year olds, where one can sometimes find it hard to find a job. Companies prefer younger, more "malleable" candidates.
---
There is also the general fact of life that experience often brings hubris & arrogance. This is definitely not always true, but it's another case where more experience is actually worse.