For the 16th straight time on Wednesday, the Orioles faced the Yankees and lost.

Afterward, right-hander Dylan Bundy admitted he was glad the teams wouldn’t meet again until next season.

“We don’t have to play them anymore,’’ Bundy said following the Yankees’ 6-5 win in The Bronx. “I guess that’s a good thing.”

It’s the first time the Yankees have won that many games in a row over an opponent in a single season since they won 21 consecutive games against the St. Louis Browns in 1927.

Those St. Louis Browns are now the Baltimore Orioles — who haven’t lost this many games in a row to one team since dropping 17 straight to the Indians in 1954.

Aaron Boone called the streak “fluky,” noting the Yankees dropped two of the teams’ first three meetings this season.

“To have that kind of run, things have to line up for you,’’ Boone said.

“It doesn’t feel great,’’ Baltimore manager Brandon Hyde said following the latest defeat. “I like the way we fought today. We were just a little short at times. It’s not a good feeling walking out of here having lost that many in a row to them.”

Prior to the game, Hyde was more introspective, acknowledging how far apart the two organizations are.

“They’re a tough team for us to play,’’ said the first-year manager of the Orioles. “They’re a team put together to win a World Series. We haven’t pitched [well] against them this year. That’s big challenge for us. … We’re starting from scratch a little bit and those guys are trying to win a World Series. You try to stay patient and stay positive and know there are better days ahead.”

Hyde has seen transformations before. He was the Cubs’ director of player development in 2013 and was on their coaching staff from 2014-18.

When he worked in player development in Chicago, they signed an impressive international player from Venezuela, Gleyber Torres, who has tormented Hyde and the Orioles all year.

His double on Wednesday left him with a 1.045 OPS against Baltimore this year. He also became the second Yankee since 1943 to record at least 17 extra-base hits versus a single opponent in one season, joining Mickey Mantle, who had 18 against the White Sox in 1957.

Hyde said he first saw Torres in the Dominican Republic after the Cubs signed him and then in spring training games before Torres was traded to the Yankees in 2016.

“He would come to big-league camp in spring training and get in at the end of some games,’’ Hyde said. “You’d always see him do something as a kid, whether it was hit a low line drive to right-center or make a play defensively where you thought, ‘This guy is gonna be a really good player.’ ”

Now Hyde is watching it up close again.

“I’m glad he’s doing well, I just don’t want to see it when we’re playing him,’’ Hyde said.

And he’s hoping the pounding they’ve taken from the Yankees will pay off somehow down the road.

“We’re doing the best we can,’’ Hyde said. “The way you get better is by playing teams like this. You take some punches along the way. That has to drive you to improve and want to be where they’re at.”