Every route entry would have a metric. If there are two default gateways, there would be two default entry. The entry which has a lower metric value would be taken by the packets.