If a direct exchange does not exist, lacks liquidity, or is less profitable, the exchange will occur with a few intermediate steps. Regardless, the swap will be run in the backend by the Via protocol to provide a completely seamless experience for users.