TORONTO — With three destructive right-handed sluggers not in the lineup Friday night, the Yankees didn’t have enough firepower to move closer to their first AL East title in seven years.

Edwin Encarnacion and Gary Sanchez are shelved with oblique and groin injuries, respectively, and Aaron Boone opted to rest Aaron Judge against former Mets lefty prospect Anthony Kay after the right fielder played each end of a doubleheader Thursday — and crashed into an outfield wall.

“Just couldn’t get anything going offensively,’’ Boone said after dropping a 6-5 decision to the Blue Jays in 12 innings that was witnessed by a Rogers Centre crowd of 23,915.

The Yankees were able to crawl out of a 3-0 hole to take a 5-3 lead via a five-run fifth inning, but Cavan Biggio’s RBI single in the fifth made it a one-run game and a balk called on Adam Ottavino allowed Richard Urena to jog home in the seventh and tie the score, 5-5.

That’s the way it stayed until Bo Bichette hit a 1-1 pitch from lefty Tyler Lyons over the left-field wall leading off the 12th inning.

Despite the loss, the Yankees’ magic number to clinch their first AL East title since 2012 remained at five because the Rays beat the Angels.

Leading by a run and with Ottavino working the seventh, the Yankees were set up to use Zack Britton in the eighth and closer Aroldis Chapman in the ninth. But Ottavino, who admitted he hasn’t been as sharp as he would like lately, gave up a leadoff single to Urena, the No. 9 hitter. While pitching to Bichette, who eventually walked, Ottavino unleashed a wild pitch that pushed Urena to third. Biggio forced Bichette at second with a groundout that moved Urena to third.

Then, Ottavino was called for that balk when he made contact with the pitching rubber twice while making a move toward first base.

“There is a little bit of a gray area there. I picked my foot up and put it back down and it touched the rubber again so that is against the rules,’’ Ottavino explained.

Britton worked a clean eighth and Luis Cessa, thanks to feeding Vladimir Guerrero Jr. an inning-ending double play ball that got him out of a first-and-third situation in the ninth, added two scoreless innings.

Lyons, whom the Yankees picked up after the lefty was released by the Pirates in August, worked a perfect 11th that meant nothing when Bichette hit a no-doubt homer to win the game.

“The balk hurt, it was one of those nights,’’ said Boone, who used Judge to hit for Tyler Wade in the 12th. Judge struck out.

Masahiro Tanaka was forced to get extra outs when first baseman DJ LeMahieu and second baseman Gleyber Torres commited errors in the third and fourth innings, respectively.

Tanaka was far from the pitcher who blanked the Blue Jays in eight innings of a 1-0 victory on Aug. 11 at Rogers Centre. Nor was he the pitcher who was 5-1 in his past six starts against the Blue Jays since late September 2017.

“Overall, the stuff was good,’’ Tanaka, who gave up four runs and eight hits in five innings, said through an interpreter. “Fastball command and the off-speed stuff was good. I couldn’t hold them down when I needed to.’’

Following LeMahieu’s two-out single in the sixth, the Yankees didn’t get a hit and they had three baserunners for the rest of the night. One of them, Cameron Maybin, was caught attempting to steal second base in the 10th inning.

There was no guarantee Sanchez, Encarnacion and Judge would have made a difference, but watching for a dozen innings made you believe somewhere along the way one of them would have.