When to use mulitmethods?


In the data modeling videos, specially moves part 3 Eric builds a function which accepts a keyword which then chooses what function to call based off the keyword. I assume this is a good use case for a multimethod, but i don’t really see what the trade offs would be other then semantics. Anyone have input on why to perfer one method over another?

At a more abstract level when does it make sense to use runtime polymorphism over an branching statment?