Orioles 9-4, Yankees 2-3

BALTIMORE -- Paul Janish scored on the second wild pitch of the eighth inning by New York's Dellin Betances to give the Baltimore Orioles a 4-3 victory over the Yankees on Saturday and complete a sweep of the day-night doubleheader.

The Orioles scored a 9-2 victory over the Yankees earlier in the day.

New York (87-74) needed only one win to clinch the home-field advantage in the wild-card round, but again couldn't do it.

A Houston loss later would still take care of that, but if the Astros win, the Yankees' magic number remains at one heading into the final game on Sunday.

Janish, the shortstop, started the game-winning rally with a bloop single to right off right-hander Betances leading off the eighth. Janish moved to second on a wild pitch and to third when right fielder Gerardo Parra reached on a bunt single.

Janish scored the tie-breaking run when Betances (6-4) uncorked his second wild pitch of the inning, with third baseman Manny Machado at the plate.

T.J. McFarland (2-2) got the victory after throwing two scoreless innings for the Orioles (80-81), and closer Zach Britton came on in the ninth to earn his 36th save.

The Orioles have won four straight games and one more victory will keep them from their first losing season since 2011.

Power helped the Orioles again, as center fielder Nolan Reimold and Machado, who hit a home run in his fourth straight game, both went deep against right-hander Luis Severino, who settled down to allow three runs over seven innings.

Orioles right-hander Ubaldo Jimenez battled but made it through six innings, also giving up three runs, which set the stage for the eighth-inning fireworks.

The Orioles again jumped in front early, scoring twice in the first. Reimold led off with a home run to left on Severino's second pitch.

Severino later hit first baseman Chris Davis with a pitcher after two were out, and Davis scored when left fielder Steve Pearce doubled into the corner in left.

Davis got a bit of a break because the relay throw beat him to the plate, but catcher Brian McCann couldn't handle it and the ball squirted away.

Shortstop Didi Gregorius cut the lead in half with a second-inning sacrifice fly before Machado answered with a solo home run in the third.

The Yankees tied it with two runs in the fifth as they got hits from the first three batters, the last being right fielder Slade Heathcott's RBI double.

Jimenez hit center fielder Jacoby Ellsbury with a pitch to load the bases, before walking designated hitter Carlos Beltran with two out to force in the tying run.

NOTES: Orioles 1B Chris Davis hit his 30th double of the season in the opener. He has at least 30 doubles and 45 home runs in a season for the second time in his career (2013 was the other). ... RHP Mychal Givens continues to be a pleasant surprise in the Baltimore bullpen. The rookie, who used to be an infielder, threw 1 1/3 scoreless innings in Game 1 and struck out two. He has 16 strikeouts in his last seven games with a 0.90 ERA. ... New York PH Rico Noel got his first major league hit in the ninth inning of the opener, an infield single that rolled slowly up the third-base line. ... Yankees RHP Ivan Nova continued his recent struggles. He gave up five runs in 5 2/3 innings in the first game and is 0-4 with a 7.20 ERA in his last four appearances.
Final1st2nd3rd4th5th6th7th8th9thRHE
New York YankeesYankees010020000361
Baltimore OriolesOrioles201000010470
WP:T.J. McFarland (BAL)
LP:Dellin Betances (NYY)
Season Series
BaltimoreStatsNY Yankees
10-9Vs9-10
.274Batting Average.254
5.1Runs / Game4.2
30Home Runs18
7Errors6