Gary Sanchez’s first three games off the injured list looked very similar to the stretch leading to his second stint on the shelf.

Not good.

Two games don’t guarantee the ultra-talented hitter is about to put together a strong final six weeks to the season, but Sanchez looks like a different hitter than he was this past weekend when he first exited the IL.

“Made some adjustments, definitely feel better these last two games,’’ Sanchez said after his three-run homer in the first inning off Dylan Bundy highlighted a four-run rally that helped the Yankees to a 6-5 win over the woeful Orioles in front of 43,909 Wednesday afternoon at Yankee Stadium. “Try to keep it simple. Look for pitches inside the zone and hit it up the middle.’’

Facing the overmatched Orioles pitching staff certainly helps any hitter find a groove. And when that hitter is wearing a Yankees uniform, the odds increase.

Wednesday marked the 16th straight Yankees win over the Orioles this season when they finished 17-2 against the AL East cellar-dwellers.

According to Elias Sports Bureau, this is the first time the Yankees have completed at least five series sweeps against one opponent since sweeping six series against the Kansas City A’s in 1957.

Wherever the Yankees went Wednesday night, they couldn’t be faulted for raising a glass of champagne with small bubbles and a fat price tag in honor of the Orioles helping them speed toward their first AL East title in seven years.

The Yankees’ 14th win in 16 games raised the best record in the AL to 81-41 and pushed their lead over the second-place Rays to 9 ½ games, pending the outcome of the Rays-Padres game Wednesday afternoon.

Prior to going on the IL for the second time this year on July 24 with a strained left groin, Sanchez was in a stretch where he hit .102 (6-for-59) with a homer, four RBIs, 20 strikeouts and a .358 OPS. In his first three games back, beginning Saturday against the Blue Jays, Sanchez was 1-for-11 with a homer, an RBI and a .530 OPS.

“When I hit the IL I hadn’t hit in a while. I am feeling better right now and looking forward to being consistent,’’ said Sanchez, who went 3-for-3 with a walk, scored two runs and drove in three. In the past two games Sanchez is 5-for-7 with a homer and four RBIs.

Thirty-three first-inning pitches by J.A. Happ had his pitch count at 73 after three, but the left-hander managed to give up just two runs in five innings and improve to 10-7.

“I felt like I was crisp, just lost a couple of guys with the walks,’’ said Happ, who gave up an RBI single to Jonathan Villar in the first inning before catching Jace Peterson looking at a 1-2 pitch for the final out with the bases loaded. “I made a pitch to get out of there and that was huge.’’

Mike Ford’s two-run, two-out single to left upped the Yankees’ lead to 6-2 in the sixth but after a perfect sixth Luis Cessa was pulled in the seventh when he and Adam Ottavino combined to give up three runs and cut the Yankees’ lead to 6-5.

Zack Britton worked around a leadoff walk to Peterson in the eighth and Aroldis Chapman muted Renato Nunez’s two-out single in the ninth by striking out Villar to post his AL-leading 33rd save in 38 chances.

Say what you want about the Yankees getting fat on the Orioles, but the Rays, Red Sox and Blue Jays all play the Birds 19 times this year and won’t match the Yankees’ domination over them.

With Aaron Judge in a 12-for-76 (.158) slump that includes one homer, 27 strikeouts and four RBIs in the past 20 games, this would be a good time for Sanchez to become the consistent middle-of-the-lineup run producer so many believe he can be. And one the Yankees need him to be.