''It takes 60-plus minutes to get points in the NHL, and tonight was one of those games, a prime example of it,'' Ducks coach Randy Carlyle said.
Rakell got behind Leon Draisaitl for a breakaway and poked the rebound in between Koskinen's legs for his 100th career goal, giving the Ducks a thrilling victory after a well-executed stretch pass from Brandon Montour.
Ryan Getzlaf won the faceoff and gave the puck to Montour, who took it deep into his own zone and launched a bouncing pass from the right of his own net all the way to Rakell at the blue line entering the attacking zone.
Rakell's goal gave the Ducks their 11th win over the Oilers in the past 14 home games (11-1-2) and the 20th in their past 28 games overall (20-2-6) against the division rival.
''It felt like it was going to come throughout the whole game,'' Rakell said. ''I don't know what it is against this team, but it feels like it's never over.''
Ritchie scored into an open goal on a rebound of long shot by Marcus Pettersson that hit Rakell and landed right at the forward's feet in the final seconds.
It was the first goal of the season for Ritchie and extended his point streak to a career-best four games.
''We can't be upset about this game,'' Nugent-Hopkins said. ''We can be frustrated right now for a little bit, but we played a hard-fought 60 minutes and can take a lot of positives out of it. Just unfortunate we didn't come out of it with that second point.''
The game was scoreless before Nugent-Hopkins converted a wrist shot from the left circle 8:55 into the third. It was his sixth goal of the season.
McDavid got his 19th assist on Nugent-Hopkins' third goal in his past five games. McDavid has three goals and six assists during his point streak.
Anaheim's Adam Henrique looked as if he had scored the game's first goal 5:29 into the third on a one-timer from the slot, but the officials ruled no goal. The puck never completely crossed the line before Kris Russell got his stick in to pull it back. A video review confirmed the call on the ice.
''The puck was bouncing away from us versus bouncing for us, but then we get a bounce with the goalie out,'' Carlyle said. ''Bounced right to Nick Ritchie, big, strong guy who was able to put it across the line and give us life, you know.''
NOTES: Edmonton scratched D Chris Wideman, who was acquired in a trade with Ottawa on Thursday. The Oilers also scratched D Jason Garrison and RW Patrick Russell. ... Ducks D Hampus Lindholm missed his third straight game because of a lower-body injury. Carlyle expects Lindholm to travel with the team for its upcoming road trip. . Koskinen was able to remain in the game after being hit in the chest on a powerful slap shot by Getzlaf during a power play early in the third period.
Oilers: Wrap up their three-game road trip at the Los Angeles Kings on Sunday.
Ducks: Open a five-game road trip at the Nashville Predators on Sunday.
More AP NHL: https://apnews.com/tag/NHL and https://twitter.com/AP-Sports
Copyright 2018 by AP. Any commercial use or distribution without the express written consent of AP is strictly prohibited.