Chris Davis gets a celebratory five from Chris Dickerson. (Winslow Townson / Getty Images)

The Boston Red Sox’s missed opportunity is the Baltimore Orioles’ gain.

On Wednesday night, the Sawx couldn’t clinch their first playoff berth since 2009 and the O’s clung to their playoff hopes, lurking a game back in the race for the second American League wild card with a 5-3 victory in 12 innings in Boston.

Chris Davis delivered for Boston, with a two-run grounder (they can’t all be home runs) up the middle on $1 Beard Night at Fenway Park.

A buck and a beard were all anyone needed to get into Fenway Park. (Elise Amendola / AP)

“We’ve been here before,” Davis said (via the Baltimore Sun). “I think last year we were obviously really good in one-run games, and I think we kind of learned a little bit about ourselves and what it takes to compete in those games. This year is no different. We know its crunch time right now and that we’ve got to take whatever we can get.”

For the 114th time in 151 games, the Orioles played an error-free game, breaking the 2008 Houston Astros’ record for most errorless games since 1900.

“We take a lot of pride in our defense,” Davis said. “Going into spring training we thought we have a good defensive team and we started working on it then. We had a few miscues here and there, but for the most part we’ve been solid all year. I think our pitching staff appreciates that, knowing that you can throw strikes and your defense is going to play behind you.”

Now 81-70 and 9-6 against Boston, the Orioles play the Red Sox again tonight, with Chris Tillman facing John Lackey at 7:10 p.m. After tonight, the O’s will play three more times this season, at Camden Yards.

Follow @CindyBoren on Twitter and on Facebook.