How a Cisco router picks one best path — one fixed chain:

Longest Prefix Match → Administrative Distance → Metric → ECMP → FIB

Control plane builds the RIB; the data plane forwards from the FIB via CEF. A next-hop that isn’t directly connected triggers a recursive lookup before the route is installed.