NEW YORK -- Two big swings, both off the bench.
Left out of the starting lineup, Jacoby Ellsbury and Didi Gregorius hit back-to-back homers on consecutive pitches in the seventh inning to power the New York Yankees past the Los Angeles Dodgers 3-0 on Tuesday night.
Gary Sanchez added a leadoff home run in the eighth, CC Sabathia pitched three-hit ball for 6 1/3 innings and the Yankees helped their unexpected playoff push by winning for the eighth time in 10 games.
New York pulled even with Detroit, two games behind Toronto and Baltimore for the two AL wild cards.
"I think rest is helpful at this point in the season," Yankees manager Joe Girardi said. "We've seen a couple of times when we've given Jacoby a day off, he's been really good the next day and goes on a pretty good streak. So hopefully it happens when we give him a half day."
Prized rookie Julio Urias was lifted in the fourth by the Dodgers, who had won seven of nine before their latest offensive flop against left-handed pitching.
They entered play with a four-game lead in the NL West over San Francisco, which hosted San Diego later.
"As we finish out the next 18 games, we're going to see some left-handed pitching and rightfully so," manager Dave Roberts said after his team was blanked for the 10th time overall and second in three games. "So there's got to be some point where we break through."
In the series finale Wednesday afternoon, Dodgers ace Clayton Kershaw makes his first career start at Yankee Stadium.
Sabathia struck out seven and walked one as the Yankees rebounded from consecutive losses following a seven-game winning streak.
"This is lot of fun. This is what September baseball is about," Sabathia said.
Ellsbury originally was rested against the left-hander, but entered in the fifth when rookie right fielder Aaron Judge exited with an injury.
With one out in the seventh, Ellsbury drove a hanging breaking ball from right-hander Ross Stripling (4-7) into the second deck in right field to snap a scoreless tie.
"I knew at probably some point I'd come in the game," Ellsbury said. "I started getting ready about the third inning, so even with Judgie getting hurt in the fifth, I was ready to go."
Gregorius, nursing a sore rib, connected on Stripling's next pitch for his first career pinch-hit homer.
"It's good. I got treatment on it. If they needed me, I was ready," the shortstop said.
Sanchez went the opposite way against Jesse Chavez, the rookie's 14th home run in 136 at-bats this year.
Starlin Castro had three hits for New York.
The 20-year-old Urias, outdone by a fellow southpaw 16 years his senior, walked three and threw 78 pitches in what is expected to be his final start this season. Los Angeles plans to put Urias in the bullpen to limit his innings and get him ready for his potential postseason role.
"I'll be happy with whatever decision they take," Urias said through a translator.
The last time two Yankees hit consecutive homers in a game neither started, it was Moose Skowron and Tommy Byrne who connected in July 1957 at the Chicago White Sox, the Elias Sports Bureau said.
Dodgers: LHP Brett Anderson, on the disabled list with a blister on his index finger, is scheduled to make a rehab start Friday for Triple-A Oklahoma City in Game 3 of the Pacific Coast League championship series against El Paso.
Yankees: Judge was removed with a right oblique strain and will have an MRI on Wednesday. "We won't see him for a while," Girardi said, acknowledging it's possible Judge could miss the rest of the season. Judge was batting in the fourth when he was checked by Girardi and a trainer, but initially stayed in and drew a walk. He said he got hurt on one particular swing. "Just wanted to try to finish out the at-bat," he said. "It's tough. No one wants to go through it, especially right now." ... Girardi said he thinks Gregorius feels better and will be able to start Wednesday.
Dodgers: Kershaw (11-3, 1.89 ERA) is set to make his second start since missing more than two months with a back injury. The ace left-hander threw 66 pitches over three innings last Friday in a 4-1 loss at Miami, but Roberts wouldn't say how many Kershaw might throw this time. "It'll be more than his last start," Roberts said. "We expect Clayton to be Clayton."
Kershaw has faced the Yankees twice at Dodger Stadium, allowing two earned runs over 15 innings (1.20 ERA) in a pair of no-decisions -- the last in July 2013.
Yankees: RHP Michael Pineda (6-11, 5.07) is 0-1 with a 4.65 ERA in his past six starts.
'We'll play better', Cora confident ahead of Red Sox's elimination game
Red Sox manager Alex Cora says the Red Sox have won must-win games before, and are ready for Game 6 vs. the Astros.
MLB playoffs 2021: Who's going to the World Series? Answering the big questions left for Astros-Red Sox and Braves-Dodgers
Both the ALCS and NLCS are headed to Game 6. Can we expect a comeback bid or two -- or a pair of clinchers?
MLB playoffs 2021: Boston Red Sox manager Alex Cora is trying to leave behind his Astros past
The Red Sox skipper had to look within himself during his suspension for a sign-stealing scandal -- and came out of it with a new understanding.
2021 MLB playoffs: Schedules, postseason bracket, analysis and updates
All the latest information about the teams, storylines and highlights of the 2021 MLB postseason, from the start of October through the World Series.
Chris Taylor keeps Los Angeles Dodgers alive with three homers in Game 5 win
Chris Taylor became the first player in postseason history to homer three times while his team faced elimination, providing a much-needed jolt as the Dodgers beat the Braves 11-2 in Game 5 of the NLCS.
Houston looks to clinch pennant with victory over Boston
Boston Red Sox (92-70, second in the AL East) vs. Houston Astros (95-67, first in the AL West)