BOSTON — With the exception of a handful who came to support the visitors, fans who packed TD Garden on Thursday night wanted to see history reversed.

They had to settle for a great hockey game.

The Bruins fell to the Capitals for the 14th straight time, dropping a 4-2 decision despite outshooting the defending Stanley Cup champions by a 41-22 margin.

Jaroslav Halak felt pretty bad about that. His playing time reduced by Tuukka Rask’s strong recent performance, Halak got his chance on Thursday in part because of his 9-9-0 career record against the Capitals — far superior to Rask’s 1-11-5.

“I got outplayed by their goalie,” said Halak, who made 18 saves to Braden Holtby’s 39. “I need to be better. Next game I get a chance, hopefully I’ll help the guys.”

The B’s, who brought a five-game winning streak into the game, twice managed to tie up the Caps, only to give up the go-ahead goal almost immediately. It happened for the second time in the third period, when David Krejci scored a power-play goal against Braden Holtby — now 12-0-0 against the B’s — at 4:37, only to see Niklas Backstrom come back to beat Halak at 5:46, with a relatively long-distance wrist shot Halak felt he should have stopped.

“I just need to make a save on that one,” he said. “It could still be 2-2, we could still be in the game. I just need to be better.”

Alexander Ovechkin’s second goal of the game, an empty-netter with 1:15 to play, made sure the Bruins’ most recent victory over the Capitals would still be on March 29, 2014; They’re 0-11-3 against the Caps since then (0-6-1 at the Garden).

Although it wasn’t necessarily a reflection of bona fide scoring chances, the Bruins had a 17-5 advantage in shots at the end of the first period, but trailed 1-0. The Capitals’ goal came after 6:38, when T.J. Oshie collected a puck in the Capitals’ high slot and snapped it through the defense pairing of Torey Krug and John Moore to Jakub Vrana, who had sped into the neutral defensive zone when the puck was turned over. Vrana scored his 15th goal of the season on the breakaway, beating Halak to the blocker side.

The Bruins, who hadn’t done much with the early power play they were awarded when Jonas Siegenthaler hauled down Brad Marchand as he took David Krejci’s perfect pass into the left circle, looked much sharper when Michal Kempny was penalized for tripping Marchand in the neutral zone at 14:13. A couple of strong puck retrievals and passes by Jake DeBrusk gave Patrice Bergeron and David Pastrnak chances from good scoring positions, but neither was converted.

The second period was more of an even match, highlighted by an increasingly physical battle between the Bruins’ checking group of Sean Kuraly, Noel Acciari and Chris Wagner against the Caps’ top line of Ovechkin, center Evgeny Kuznetsov and right wing Tom Wilson. One shift saw every member of the line land a solid check in the Capitals’ zone, resulting in a Wagner shot from the slot that missed the net.

The Bruins finally did make sure Holtby (now 15-2-0 against the B’s, with 12 straight decisions), wouldn’t earn his fifth career shutout against them when Ryan Donato scored at 14:11. The goal was the product of a tremendous shift by defenseman John Moore, who battled to keep several pucks alive deep in Capitals territory, and good positioning by Donato, who backed up Moore at the point. Jakob Forsbacka eventually pushed the puck back to Torey Krug, who scooped it over a Caps’ stick to Donato, and he unloaded a wrist shot over Holtby’s glove for his sixth goal of the season.

The Bruins didn’t gain any momentum, though. After Ovechkin bumped Acciari off a puck behind the net, he backed out just below the left circle, from where he snapped Wilson’s pass over Halak’s right shoulder just 39 seconds after Donato scored to put the Caps back up, 2-1.