Sometimes, by material.
If the class can be taught from a textbook, the instructor may be irrelevant. The best classes at my alma mater were being taught by professors who handed out paperback copies of their as-yet-unpublished textbook, or had us work from the first-print editions they authored, or who's "textbook" was the aggregation of notes they'd collected over the years.