SAN FRANCISCO — Rookie Ty Blach outpitched Clayton Kershaw, and the Giants held onto their lead for the last NL playoff spot going into the final day of the regular season, beating the Dodgers 3-0 Saturday.
The Giants stayed one game ahead of the Cardinals for the second and final wild-card slot.
Former Ray Matt Moore will start for the Giants today, and a win or St. Louis loss puts them in the playoffs.
Blach, 25, earned his first big league victory in his second start in the majors, and also got his first two hits.
Cardinals 4, Pirates 3: Jedd Gyorko hit a go-ahead homer in the eighth for host St. Louis, which must win today and have the Giants lose to force a one-game playoff for the NL wild card.
Blue Jays 4, Red Sox 3: Ezequiel Carrera hit a tiebreaking sac fly in the ninth for visiting Toronto. The Jays are tied with the Orioles for the top spot in the AL wild-card race, but Toronto owns the tiebreaker.
Yankees 7, Orioles 3: Tyler Austin tied the score with a seventh-inning homer, Austin Romine and Brett Gardner drove in two runs each in the eighth and New York rallied from a three-run deficit.
Braves 5, Tigers 3: Freddie Freeman and Nick Markakis homered, rookie Aaron Blair had a career-high 10 strikeouts and Atlanta damaged visiting Detroit's playoff hopes.
Mets 5, Phillies 3: Visiting New York clinched a playoff spot, securing the top NL wild card. The Mets host San Francisco or St. Louis on Wednesday, with the winner advancing to face the Cubs.
Nationals 2, Marlins 1: Rookie Trea Turner hit his 13th homer as host Washington clinched homefield for the NLDS.
Reds 7, Cubs 4: Jon Lester failed to become a 20-game winner, struggling for the first time since mid July as host Cincinnati pulled away.
Twins 6, White Sox 0: Byron Buxton and Jorge Polanco each hit a two-run homer for host Minnesota to send former Ray James Shields to a majors-high-tying 19th loss. Shields (6-19) ended a career-worst season split between San Diego and Chicago.