EIGRP has an administrative distance of 90, which is lower than OSPF's 110. When a router learns the same prefix from multiple routing protocols, it first compares administrative distance. The route with the lower administrative distance is installed in the routing table, regardless of the metric values.
Why this answer
When a router learns the same destination from multiple routing protocols, it uses administrative distance to select the best route. EIGRP's default administrative distance is 90, while OSPF's is 110. Because 90 is lower, the EIGRP route is installed in the routing table.
Metrics are only compared between routes from the same protocol.
Exam trap
The trap here is comparing metrics from different routing protocols, which is invalid because each protocol uses its own metric system.