The same switch (or if/else chain) over a type code appears in multiple places — adding a new case means hunting them all down.
Each case is a class implementing a shared interface; dispatch happens once via a virtual call.
Smellier version
switch (event.kind) {case 'click': return onClick(event);case 'key': return onKey(event);case 'drag': return onDrag(event);}
Fresher version
event.handle(); // ClickEvent, KeyEvent, DragEvent each implement handle()
Dispatch logic is duplicated across the codebase; new cases are easy to miss; the type-code couple amplifies.
Replacing the switch with polymorphism scatters dispatch across classes; adding a new case is one new file, but understanding the full dispatch surface now requires reading several.
Adding a new case is one new class; the compiler and tests surface what's missing.
Polymorphism worship — a switch with two stable cases becomes a class hierarchy of two trivial subclasses, paying class-hierarchy overhead with no flexibility return.