BALTIMORE — One night after setting a dubious record for losses, the Baltimore Orioles were ready to savour a rare win against a division rival.

Rookie DJ Stewart hit his first major league home run and Baltimore used five pitchers to avoid a three-game sweep by beating the Toronto Blue Jays 2-1 Wednesday night.

The Orioles bounced back one night after taking their 108th loss of the season, the most since moving to Baltimore in 1954. They remained three away from the franchise mark set by the 1939 St. Louis Browns.

"I was thinking about it tonight how many times I walked down that long hall to get here after a great win, trying to temper the enthusiasm," manager Buck Showalter said. "I still feel elated after we win a game and then I think about all the good things that went on, especially defensively tonight."

Jimmy Yacabonis started for Baltimore and threw four scoreless innings, followed by Mike Wright (4-2), who blanked the Blue Jays over two innings. Miguel Castro allowed a solo homer to Billy McKinney in the eighth that cut the lead to 2-1 before Tanner Scott managed the final out of the inning.

Mychal Givens picked up his eighth save for Baltimore.

Stewart, who was promoted Sept. 11 from Triple-A Norfolk, gave the Orioles the lead when he led off the third with a towering shot off Estrada that caromed off the right-field foul pole. He also had a double in the seventh and scored an insurance run on a single by Cedric Mullins off Tim Mayza.

"I've felt comfortable every at-bat pretty much," Stewart said. "I think there was one at bat I kind of went up there chasing a little bit, just trying to get that hit. I felt comfortable for the most part, but whenever you see one fall for the first time, it's a little bit of a relief that not only are you feeling well but you're seeing the results also. It was definitely big for me."

Toronto won the season series 14-5.

"Any chance you have to try and sweep a team is a big one," Toronto manager John Gibbons said. "We have had a pretty tough year ourselves so you try to build and win as many games as you can."

The Blue Jays' Marco Estrada (7-13) bounced back from his previous outing when he tied a career-high by allowing eight runs against the Yankees. He was charged with one run and four hits with five strikeouts and one walk over six innings.

"It was a good outing. I made a lot of good pitches," Estrada said. "One got away from me and the kid hit it out, Congrats to him. Weren't too many hard hit balls."

The Blue Jays loaded the bases in the fourth against Yacabonis, who was making his fifth career start. However, he escaped the jam when Kendrys Morales hit a fly ball to Adam Jones, who threw out McKinney trying to score from third. It was Jones' 99th career assist and first in right field.

YOUTH MOVEMENT

Blue Jays C Russell Martin has not played since Sept. 3. Manager John Gibbons wants to give Luke Maile and rookie Danny Jansen an extended look behind the plate.

TRAINER'S ROOM

Orioles: Rookie C Chance Sisco will not travel with the team to New York. He took a foul ball off his mask Sunday against the White Sox and is still waiting to be cleared from concussion protocol.

UP NEXT

Blue Jays: Sam Gaviglio will start the opener Thursday in Tampa Bay. He has gone 1-8 since July 20 and lost both games against the Rays this season.

Orioles: Rookie Yefry Ramirez (1-6, 5.50 ERA) will make his 11th start Friday in New York. He tied a career high with seven strikeouts over 5 2/3 innings Saturday against the White Sox.

___

More AP baseball: https://apnews.com/tag/MLBbaseball and https://twitter.com/AP_Sports