Derek Jeter also homered for the Yankees, who lead the Orioles by one game with 22 left. Each team won twice in a four-game set that drew 173,572 fans, including 40,346 in the finale.
New York finished 9-9 against Baltimore this season. Now, if the teams are tied at the end of the regular season, record within the division will serve as the tiebreaker.
Pitching in relief of ineffective starter Freddy Garcia, Joba Chamberlain (1-0) entered in the fourth and worked 1 2-3 hitless innings to earn his first win since May 2, 2011.
Wilson Betemit had two RBIs for the Orioles, who were seeking to win the season series from New York for the first time since 1997.
Orioles starter Zach Britton (5-2) allowed five runs, five hits and five walks in 3 1-3 innings. The left-hander was 4-0 with a 0.94 ERA in his previous four starts.
BLUE JAYS 4, RED SOX 3
BOSTON (AP) — Omar Vizquel hit a pair of sacrifice flies, including one in the ninth inning that lifted Toronto over free-falling Boston.
Toronto entered the series in last place in the AL East but left Fenway Park two games ahead of the Red Sox. The Blue Jays have won four straight overall and six in a row against Boston.
Jacoby Ellsbury and Dustin Pedroia homered for the Red Sox, who have lost 10 of 11.
Reliever Brandon Lyon (2-2) got the win and Casey Janssen picked up his 20th save.
Clay Buchholz (11-6) allowed four runs on seven hits over 8 2-3 innings, retiring 13 straight batters before Rajai Davis blooped a single with one out in the ninth.
RAYS 6, RANGERS 0
ST. PETERSBURG, Fla. (AP) — B.J. Upton hit three home runs and James Shields threw a two-hitter to lead Tampa Bay past Texas.
Upton hit solo homers in the first, fourth and sixth innings. He struck out in the second, and received a standing ovation before hitting a broken-bat grounder to third in the eighth.
Shields (14-8) permitted just three baserunners. Elvis Andrus reached on a first-inning error, Nelson Cruz had an infield single in the second and David Murphy singled in the eighth.
Roy Oswalt (4-3) allowed four runs and six hits in two innings for Texas, filling in for 15-game winner Matt Harrison, who had his start pushed back to Tuesday to allow for extra rest.
ROYALS 2, WHITE SOX 1, 10 INNINGS
CHICAGO (AP) — Mike Moustakas stroked a go-ahead single in the 10th inning to lift Kansas City over Chicago.
The Royals plated both their runs with two outs in the 10th off Brett Myers (2-3), the seventh of eight White Sox pitchers in the game.
The rally started after Alcides Escobar was thrown out, leaving the bases empty and two outs. Myers walked Billy Butler, who was replaced by pinch runner Jarrod Dyson. Salvador Perez, Moustakas and Jeff Francoeur then hit consecutive singles, the last two driving in runs.
Kelvin Herrera (3-2) got the win after preserving a scoreless tie in the ninth.
ANGELS 3, TIGERS 2
ANAHEIM, Calif. (AP) — Zack Greinke pitched seven strong innings of five-hit ball and Mike Trout hit a leadoff homer for the second straight as Los Angeles beat slumping Detroit.
Greinke (5-2) struck out seven in his fourth straight victory, and Alberto Callaspo hit a two-run homer for the Angels, who have won six straight, 11 of 12 and 15 of 18 as they attempt to claw back into the AL wild-card race.
Ernesto Frieri needed four outs and 38 pitches to earn his 18th save.
Anibal Sanchez (2-5) pitched seven solid innings for Detroit, yielding seven hits without walking a batter, but his teammates couldn't overcome the Angels' early homers.
ATHLETICS 4, MARINERS 2
SEATTLE (AP) — Jonny Gomes hit a three-run home run, Tommy Milone worked six strong innings and Oakland finished off a three-game sweep of Seattle.
Milone (12-10) allowed eight hits and two runs, matched a career high with 10 strikeouts and had no walks. He has walked one or no batters in each of his past 14 starts.
Grant Balfour worked the ninth to pick up his 16th save in 18 opportunities.
The victory moved the A's within 3 1/2 games of Texas in the AL West.
Jason Vargas (14-10) allowed just four hits and three runs in seven innings for Seattle. He walked three and struck out six.
TWINS 8, INDIANS 7
MINNEAPOLIS (AP) — Justin Morneau of New Westminster, B.C., hit his second homer of the game in the bottom of the ninth inning to lift Minnesota over Cleveland.
With one out in the ninth, Morneau hit the first pitch from Indians reliever Vinnie Pestano (3-2) just inside the right field foul pole for his 19th homer of the season. Morneau, who has four two-homer games this season, also hit a two-run shot to right in the bottom of the third.
Brian Duensing (4-2) pitched 1 1-3 innings of scoreless relief to pick up the victory for the Twins. Minnesota's Joe Mauer singled, doubled and tripled, and scored twice.
Carlos Santana had three hits, including a home run, and scored twice for Cleveland.Suggest a correction