BALTIMORE - For the second straight night, the New York Yankees tried to gift a game to the Baltimore Orioles.
On Tuesday, it was starter Freddy Garcia's five wild pitches and catcher Russell Martin's error.
On Wednesday, it was an inefficient, only mildly effective CC Sabathia who created an opening for the Orioles. And they just couldn't take advantage.
Nick Swisher bombed a full-count, two-out, two-run homer off reliever Kevin Gregg in the 10th inning to break a tie and finish a Yankees sweep with a 6-4 win before 22,919 at Camden Yards.
Baltimore (3-3) had its chances to tackle New York (3-3), but on consecutive days suffered an extra-innings defeat as the teams leave town heading in different directions - with the Orioles skidding since a hopeful 3-0 start and the Yankees back to even after being undressed at Tampa Bay.
Robert Andino and Mark Reynolds each had two-run hits for Baltimore, while Gregg (0-1) was charged with the loss after permitting two runs in two innings.
Reliever Rafael Soriano (1-0) earned the victory while Mariano Rivera tossed a scoreless 10th for his second save in as many nights. It was Rivera's 40th save at Camden Yards, the most by any visiting player at any ballpark.
Starters Sabathia and Jake Arrieta posted similar lines to take no-decisions. But Sabathia gave the Orioles a chance to do more damage than they did during his six innings on the mound.
The big left-hander threw 74 pitches in his first three frames, but held Baltimore to four runs on eight hits and two walks.
The Orioles did a solid job capitalizing on a bases-loaded situation with one out in the second inning, when they drew even at 2-2 on Andino's two-out two-run single.
Baltimore didn't match that in the third when it loaded the bases with two outs. Designated hitter Ronny Paulino grounded out to short to end the threat.
The Orioles again dented Sabathia in the fifth when Reynolds hit a two-run double to left-center with runners on the corners and two outs for their first lead, 4-3.
But Baltimore didn't score again. New York tied it in the seventh, and Sabathia's record streak of winning seven straight starts at Camden Yards came to an end with the no-decision.
The Orioles' only other significant opportunity came when Soriano loaded the bases with two outs in the ninth.
Nolan Reimold sliced a double to left and J.J. Hardy walked on four pitches. Yankees manager Joe Girardi chose to pitch to Adam Jones instead of Nick Markakis, intentionally walking the latter to load the bases. And the move paid off, as Jones struck out swinging on four pitches, flailing at the last three in order.
In all, the Orioles were a solid 3-for-9 with runners in scoring position after entering the game batting .146 in those situations. But it wasn't enough.
In the 10th, Gregg, who tossed a perfect ninth, appeared on his way to extending the game to a second extra frame when he had nobody on base with two outs - thanks to catcher Matt Wieters picking off Eduardo Nunez at first.
But Mark Teixeira blooped a double to a perfect spot between the third baseman and left fielder and scored when Swisher mashed his second homer of the year to right.
Arrieta had a solid outing after a rough rain-delayed beginning. Once the Baltimore right-hander had completed warm-ups in the bullpen and on the mound, the umpires halted play just as Derek Jeter stepped into the batter's box.
The contest was delayed 20 minutes, and it seemed to affect Arrieta, who surrendered a leadoff double to Jeter and three pitches later, a long two-run homer to Curtis Granderson to fall behind 2-0 before recording an out.
Arrieta recovered to sit the next three Yankees in order, and 11 in a row. He left the game with a 4-3 advantage, a runner on first and two outs in the seventh.
Reliever Luis Ayala came on and let the Yankees tie it on a Granderson single. Arrieta finished with four earned runs on five hits and a walk while striking out five in 6 2-3 innings.
Neither team scored again until Swisher's blast.
NOTE: Right-hander Dylan Bundy, the Orioles' top pitching prospect, struck out six in three perfect innings Wednesday in making his second minor league start with the Class A Delmarva Shorebirds. Bundy posted the same line in his debut, and has now tossed six perfect innings, fanning 12 over his first two career pro starts.