Best results are ranked by a score combining total price, total duration (including layovers), number of stops, and departure-time comfort, with a slight bonus for non-stop flights. In case of a tie: fewer stops, shorter duration, lower price, then earlier departure.