BALTIMORE -- When the game went into extra innings, the Baltimore Orioles figured it would only be a matter of time before they would be celebrating a win over the New York Yankees.
Sure enough, it wasn't long before the Orioles joyfully gathered at home plate immediately following a 3-2 victory Friday night.
Manny Machado led off the 10th inning with a double and scored on a one-out single by Nick Hundley to give Baltimore its ninth win in 11 games. The AL East-leading Orioles improved to a season-high 10 games over .500 (51-41) and stretched their advantage over third-place New York to five games.
Baltimore has gone to extra innings in three of its last five games and won in the 10th, 11th and 12th innings.
"Usually, it's pitching and the bullpen doing well," manager Buck Showalter offered as an explanation.
In this one, the Orioles got eight sharp innings from starter Miguel Gonzalez, a scoreless ninth from closer Zach Britton and a perfect 10th from T.J. McFarland (3-2).
It all added up to Baltimore's ninth win in 12 extra-inning games this season.
"I think it really speaks to the depth of our bullpen, the quality of our bullpen," Hundley said. "T.J. McFarland comes in, does a great job going through the beginning of their order, a tough part, 1-2-3. And then with the offence that we have and the staunch bullpen, that combination lends itself to be successful -- either late in the game or extra innings."
Machado began the game-winning uprising with a liner into the right-field corner off Adam Warren (1-5). After Ryan Flaherty struck out, Hundley hit an off-speed pitch into left-centre that enabled Machado to score easily.
"He just left a breaking ball up, that's all," Yankees manager Joe Girardi said of Warren. "He's pitched extremely well for us, but he just left a breaking ball up. There's not much room for error there."
Playing as a visitor at Camden Yards for the first time, Yankees second baseman Brian Roberts homered on the first pitch he saw. Roberts spent his first 13 seasons with the Orioles before signing as a free agent with New York in January.
Kelly Johnson also hit a solo shot for the Yankees, who entered with a major league-best 27-17 record in games decided by two runs or fewer. Now, however, they are only 5-5 in extra innings.
This one hurt a little bit more because of the separation it created between the teams.
"It definitely does," Warren said. "We're trying to gain games on these guys, and it just didn't go our way tonight."
New York starter Hiroki Kuroda gave up two runs and three hits in seven innings. Although he didn't issue a walk, Kuroda hit two batters and threw three wild pitches.
Gonzalez allowed two runs and six hits over eight innings. After giving up a fourth-inning double to Ichiro Suzuki, the right-hander retired 14 of the final 15 batters he faced.
Gonzalez struck out five and walked none. The eight innings matched his career high, set three times previously, including his last start against Boston.
Roberts' fifth homer put the Yankees up 1-0, and Johnson connected leading off the third.
A single by Brian McCann and Suzuki's second double of the game put runners on second and third with one out in the fourth, but Gonzalez worked out of the jam.
Baltimore took advantage of a wild spell by Kuroda to tie it at 2 in the bottom half. The right-hander hit two batters -- doubling his total for the season -- and threw two wild pitches, the first of which allowed a run to score.
"Looking back, obviously that inning was a (big) moment in the game," Kuroda said through an interpreter.
Showalter said, "We were fortunate there to push a couple across. We got a little help."
Gonzalez, meanwhile, got 10 straight outs before hitting Johnson with a pitch in the seventh with two outs.
NOTES: The Orioles placed RHP Ubaldo Jimenez on the 15-day DL with a sprained right ankle, an injury he sustained in the parking lot of his apartment complex. Jimenez was supposed to start Saturday and will be replaced by either Chris Tillman or Kevin Gausman. Shane Greene will pitch for New York. ... Britton has 23 consecutive scoreless appearances at home. ... Yankees RHP Dellin Betances struck out three to increase his total to 84, most among big league relievers.