Boston Red Sox starting pitcher Doug Fister wipes his face as he walks off the field at the end of the second inning of a baseball game against the Baltimore Orioles in Baltimore, Monday, Sept. 18, 2017. Baltimore scored three runs against Fister in the second. (AP Photo/Patrick Semansky)
Boston Red Sox starting pitcher Doug Fister wipes his face as he walks off the field at the end of the second inning of a baseball game against the Baltimore Orioles in Baltimore, Monday, Sept. 18, 2017. Baltimore scored three runs against Fister in the second. (AP Photo/Patrick Semansky) Credit: Patrick Semansky

Baltimore — Andrew Benintendi hit a two-run single in the 11th inning, Mookie Betts had four RBIs and the Boston Red Sox beat the Baltimore Orioles, 10-8, on Monday night for their ninth win in 12 games.

Xander Bogaerts homered and scored three runs for the Red Sox, who maintained their three-game lead over the second-place Yankees in the AL East and reduced to four their magic number for clinching a playoff berth.

Boston erased a five-run deficit with a six-run fifth inning and needed 10 pitchers to beat a skidding Orioles team that has now lost 10 of 12.

After three walks — one intentional — off Miguel Castro (3-2) loaded the bases in the 11th, Benintendi grounded a single past diving second baseman Jonathan Schoop to give Boston its major-league leading 14th extra-inning win against three defeats.

Matt Barnes (7-3) pitched the 10th and Carson Smith got three outs for his first save.

Red Sox second baseman Dustin Pedroia left in the fourth inning after being struck in the face by a foul ball he chopped off the plate. The team described the injury as a bruised nose and listed his availability as day to day.

It was the second freak injury Pedroia sustained at Camden Yards this season. On April 21, the All-Star was spiked on a late slide by Manny Machado, a play that created bad blood between the teams into May.

Baltimore built a 5-0 lead against Doug Fister over the first three innings, taking advantage of five walks and getting a two-run double from rookie Austin Hays.

Yankees 2, Twins 1

New York — Aaron Judge hit his 44th home run, Aroldis Chapman pitched out of big trouble in the eighth inning and New York edged Minnesota to increase its AL wild-card lead.

Todd Frazier hit a tiebreaking sacrifice fly in the sixth, and Jaime Garcia gave the Yankees a splendid performance against the team that traded him this year after only one start. New York, still chasing first-place Boston in the AL East, won the opener of a three-game series that could serve as a potential postseason preview two weeks from now.

The Yankees have built a five-game cushion for the league’s top wild card with 12 to play. Minnesota is in the second spot, 1½ games ahead of the idle Los Angeles Angels. So if the standings hold, New York will host the Twins in the one-game playoff on Oct. 3.

Athletics 8, Tigers 3

Detroit — Matt Olson homered, Jed Lowrie drove in three runs and Oakland beat Detroit.

Olson became the first A’s player to homer in four straight games since Coco Crisp in 2013, and now has 14 home runs in his last 20 games.

Tigers reliever Jeff Ferrell left the game in the eighth inning after getting hit in the head with a line drive off the bat off Ryon Healy. The hit was measured at 102.6 mph by StatCast and hit Ferrell in the right side of the head. He never went down, but jogged immediately toward the Detroit dugout and was escorted to the clubhouse.

Phillies 4, Dodgers 3

Philadelphia — Aaron Altherr hit a grand slam, the first ever given up by Clayton Kershaw, to lead Philadelphia past Los Angeles.

Chris Taylor and Justin Turner led off the game with consecutive homers and Curtis Granderson also went deep for the Dodgers, who opened play with a magic number of four to clinch the NL West. At 96-54, Los Angeles still has the best record in baseball.

The Phillies have been a thorn in the side of Kerhshaw (17-4). The Dodgers’ ace left-hander dropped to 3-5 in his career versus Philadelphia, one of just three teams he has a losing record against.

Brewers 3, Pirates 0

Pittsburgh — Brent Suter pitched five efficient innings, Ryan Braun homered and Milwaukee beat Pittsburgh to gain ground in the NL playoff chase.

Milwaukee pulled within 3½ games of the Chicago Cubs in the NL Central and two games behind the Colorado Rockies for the final NL wild card. Chicago and Colorado were both off on Monday.

Marlins 13, Mets 1

Miami — Giancarlo Stanton hit his 55th homer — and his first in nine days — while driving in four runs to help Miami beat New York.

Batting third for the first time this year, Stanton hit a three-run line drive into the home run sculpture at Marlins Park in the fourth inning against Matt Harvey (5-6).

With that, the MLB home run leader ended a drought of 29 at-bats without one.

Stanton’s homer total is the highest since Ryan Howard hit 58 in 2006. Stanton added a run-scoring single in Miami’s seven-run fifth.

The Marlins, back home after a trip extended by three games due to Hurricane Irma, won for only the fourth time in the past 21 games.

Marcell Ozuna had four hits, including his 34th home run. Dee Gordon also had four hits, among them a two-run triple. Ichiro Suzuki added two hits and an RBI, while rookie Brian Anderson drove in two runs with his first career triple.