"We played a lot in the overtime but that's the way we like it," McDavid said. "We've been out there a few times taking a minute-and-a-half, two-minute shifts, and we score at the end. We're guys who can play long minutes and play long shifts, especially in overtime."
Anton Slepyshev and Milan Lucic also scored, and Cam Talbot, who was playing his 200th NHL game, made 32 saves for the Oilers (6-8-1), who have won consecutive games for the first time this season. They also got their previous win in overtime, 2-1 at the New York Islanders on Tuesday.
WATCH: [All Oilers vs. Devils highlights]
Brian Boyle and Drew Stafford scored, and Cory Schneider made 29 saves for the Devils (9-4-2), who have lost four straight.
Boyle, who was playing his fifth game of the season after being diagnosed with chronic myeloid leukemia on Sept. 19, scored 5:33 into the first period to give the Devils a 1-0 lead. He lifted a rebound over Talbot after putting the puck on goal and driving to the net.
Boyle couldn't help but get emotional after his first goal in 30 games since he scored for the Tampa Bay Lightning against the Winnipeg Jets on Feb. 11.