Any sports league with ties would have rules for a tiebreaker. In the case of the Nationals and the Mets, the tiebreaker would be either wins (I think that’s the way the NHL used to do it) or their records against each other.
Hillary voters would tell you that the winner should be the team that got the most hits.