The shortest route isn’t always the best one