We will understand the OSPF route selection preference.
A) When there are multiple routes available to the same network with different route types, routers use this order of preference (from highest to lowest):
B) If there are multiple routes to a network with the same route type, the OSPF metric calculated as cost based on the bandwidth is used for selecting the best route. The route with the lowest value for cost is chosen as the best route.
C) If there are multiple routes to a network with the same route type and cost, it chooses all the routes to be installed in the routing table, and the router does equal cost load balancing across multiple paths.
References:
(A)
(B) https://www.juniper.net/documentation/us/en/software/junos/ospf/topics/topic-map/configuring-ospf-route-control.html#id-example-controlling-the-cost-of-individual-ospf-network-segments
(C) https://www.juniper.net/documentation/us/en/software/junos/ospf/topics/topic-map/configuring-ospf-route-control.html#id-example-controlling-the-cost-of-individual-ospf-network-segments