If mergesort is O(n log n) always, why is quicksort usually faster?
On paper mergesort looks strictly better. It is O(n log n) in every case, while quicksort degrades to O(n²) if the pivots go badly. Yet almost every standard library sort is quicksort or a hybrid built on it.
What is the comparison missing?