I definitely agree on this.
Mathematical logic class taught by logician? Awesome
Automata class taught by expert in complexity theory? Fantastic
Rudin class taught by PDEs expert - amazing
The worst class I had was an introductory algorithms course taught by someone who specialized in teaching.