Explain the difference between routing and switching, and describe a scenario where you would optimize for one over the other.