BALTIMORE — When infielder Thairo Estrada entered the Yankees’ clubhouse at Camden Yards with his equipment bag late Wednesday afternoon and was assigned a locker between Aaron Judge and Didi Gregorius, it was easy to believe Gleyber Torres was headed to the injured list with a core problem that forced him out of Tuesday night’s game after two at-bats.

Yet, when the Yankees got word that a series of tests that included an MRI exam on Wednesday in New York didn’t unearth a serious injury, Torres was en route to Camden Yards and Estrada sent back to Triple-A Scranton/Wilkes-Barre.

Since tests done on Torres on Sunday night were negative after he left a game against the Red Sox with discomfort in his left groin area, the Yankees used the All-Star second baseman as the DH Monday against the Orioles and started him at second base Tuesday.

Although Torres avoided the IL Wednesday, the Yankees weren’t sure when he would return to the lineup despite them not believing the issue was serious or that Torres might not be pain free.

While the tests didn’t find anything the Yankees deem serious, not knowing what caused the pain Sunday and Tuesday is perplexing.

“I guess a little bit, sure,’’ Aaron Boone said. “But also that we don’t think it’s serious, nor does he for that matter. I talked to him late [Tuesday] night when he was on his way back [to New York] and he said, ‘I am all right. I feel like I am going to be fine.’ We will continue to watch it closely and monitor it but as of right now we are optimistic.’’

While Boone didn’t exactly say when Torres would return to the lineup, he said he was confident when Torres did he wouldn’t be restricted.

“This is a day-to-day thing, a couple of days where you keep him out,’’ Boone said. “Once we put him back in, like last time, he is not restricted. Once we feel like he is ready to go back, we’ll look at him as a regular.’’

Torres arrived at Camden Yards in the eighth inning of the Yankees’ 14-2 win over the brutal Orioles ready to play whenever Boone puts him in the lineup.

“It was a little sore [Tuesday] night, [Wednesday] night I feel better,” Torres said. Maybe one day more [of rest], but [Thursday] if the manager needs me, I am ready to play.”

Even though Torres had to leave Tuesday night’s 9-4 victory in the third inning with what the club described as “core pain,’’ Boone didn’t regret playing him Monday and Tuesday.

“No issues just because of all the testing we did. Especially now, the testing they are able to do finds a lot,’’ Boone said. “The fact that nothing was found and that he was voicing, ‘Good to go, ready,’ no [issues].’’

Boone started Breyvic Valera at second base Wednesday night for the second time in three games and also welcomed back third baseman Gio Urshela, who missed two games after fouling balls off each leg in the same at-bat Sunday.

According to Boone, Torres’ MRI exam tested for a sports hernia and any strains — all negative — and the 22-year-old was upbeat, feeling good and will travel to Toronto where the Yankees open a four-game series Thursday night.

Torres’ numbers from Sunday to Tuesday indicate the core pain was affecting him at the plate. After going 3-for-5 with two homers and three RBIs in the second game of Saturday’s doubleheader against the Red Sox, Torres went 0-for-10 in the next three games.

With Luke Voit, Aaron Hicks and Edwin Encarnacion on the IL, the Yankees were encouraged that Torres didn’t become the 26th player to land there this season. However, not discovering the source of pain that was so bad Torres had to leave a game Tuesday night lends a degree of the unknown to the situation.