BOSTON — On the final day of their record-setting season, the AL East champion Boston Red Sox picked up a few more titles.

Mookie Betts had another hit to coast to the big league batting championship and J.D. Martinez won the RBI crown on Sunday as the Red Sox headed into the playoffs with their franchise-record 108th win, a 10-2 victory over the second-place New York Yankees.

“That’s a lot of wins,” said Martinez, who hit his 43rd homer, the most ever for a player in his first year with the Red Sox. “It’s been exciting, and now we’re focused on the playoffs.”

Five days before they have a chance to meet in the postseason for the first time since Boston’s epic comeback in its 2004 World Series championship run, the teams phoned in a meaningless Game 162. In all, the usually bitter rivals ran out 26 position players and 15 pitchers, with Red Sox Manager Alex Cora pulling starter Rick Porcello after two hitless innings and sending out a sub for Betts so he could get a curtain call.

“It really doesn’t matter,” said Cora, who before the game compared it to the final day of spring training. “Now we start. We’re ready to go, whoever we play on Friday.”

New York has to go through Oakland first, in Wednesday night’s AL wild-card game. The winner will be in Boston for Game 1 of the AL Division Series, starting Friday.

“Excited to go chase it down,” Yankees Manager Aaron Boone said. “It’s an opportunity none of us should take lightly – the opportunity to get in the postseason.”

Xander Bogaerts also homered for Boston, and Luke Voit hit one out for the Yankees to give them a major league-record 267 home runs for the year. Betts finished with a major league-best .346 average, and Martinez’s three-run homer gave him an AL-best 130 RBI.

Porcello left with a 7-0 lead and afterward was named to start Game 3 of the ALDS, following Chris Sale and David Price to the mound. The Game 4 starter could be Nathan Eovaldi, depending on what happens in the first three games.

Cora said his team would have Monday off, and he planned to watch the NL tiebreakers and the wild-card games.

“Should be a fun week in baseball,” he said. “Get that playoff feeling watching those guys go at it.”

Eduardo Rodriguez (13-5) was credited with the win by the official scorer as the most effective reliever under MLB Rule 9.17(b). Rodriguez was the fourth of eight Boston pitchers, going one inning and striking out two.

Betts had already taken the field at the beginning of the third inning when Cora sent Tzu-Wei Lin out to replace him, allowing the AL MVP favorite to get a cheer on his way back to the dugout. A brief “M-V-P!” chant broke out.

“If he’s not your MVP, I don’t know who is,” said Martinez, who will also be in the running, along with Mike Trout, Jose Ramirez and Alex Bregman. “He’s as good as advertised.”

Betts led the majors in slugging percentage, runs and WAR. He is the first player in baseball history to lead the majors in batting average and also top 30 steals and 30 homers.

Boston snapped a three-game losing streak but completed the season without losing four in a row. It was the only team in baseball to go all season without losing four straight. It also accomplished that in 1903 and 2013, winning the World Series in both years.