If there’s a three way tie:
If it’s LAD/SFG/CHC, then because of coin tosses and the NL West being involved, it’ll be the Dodgers @ the Giants in the first game. If the Giants lose, they stay at home, and the Cubs travel there to meet them. If the Dodgers lose – well, they actually didn’t do the coin toss there yet. Hmmm.
If it’s HOU/SFG/CHC for just the Wild Card, there are no coin tosses involved; it’s just a ranked two game elimination battle.
G1: Team A @ Team B
G2: Team C @ Winner
Who gets which spot is decided by the records against the rest of the group:
Giants 8-4 .667 Cubs 12-13 .480 Astros 11-14 .440
(figuring out this chart is why I did this)
Top record gets first pick, so the Giants have clinched first choice. The sane thing would be to take the Team C slot, because you’d only need one win to move on. Cubs would logically choose to be Team B, and hope to win two straight home games.
On any two way tie, the Cubs lost the coin toss and will be visitor in a 163 game.