MONTREAL — Arizona Coyotes prospect Max Domi scored two empty-net goals to help Canada beat the United States 5-3 on Wednesday in the World Junior Championship.

Captain Curtis Lazar and Sam Reinhart also scored for Canada. The Canadians finished 4-0 in round-robin play in Group A to advance to a quarterfinal in Toronto against Denmark, the fourth-place team in Group B.

“I thought we had good flow,” Lazar said. “Give credit to the Americans. They made it quite interesting at the end. I was freaking out a bit, but we found a way to win in the end”

Canada led 3-2 late in the third when Domi scored into an empty net. Dylan Larkin, with his second of the game, got one back for the U.S., and Domi had another empty-netter with 5 seconds left.

Anthony DeAngelo also scored for the U.S. (2-1-1), which finished second in the pool and will stay in Montreal to play Russia – the third-place team in Group B.

The pregame hype centered on Canada’s Connor McDavid and American star Jack Eichel, expected to be the first two picks in the NHL draft. They each had an assist.

In Group B in Toronto, Oskar Lindblom scored three goals and Sweden beat Switzerland 5-1 to finish round-robin play 4-0. Jens Looke and Adrian Kempe also scored and Maple Leafs draft pick William Nylander had three assists. Sweden had four power-play goals.

“We have good chemistry,” Nylander said about the power play. “We played together at the U18s (Under-18), and we’re getting better and better still. It’s a lot of fun.”

In the quarterfinals, Sweden will play Finland or Germany in Toronto

Patrik Zdrahal scored twice in the Czech Republic’s 4-1 victory over Russia.

The Czech Republic will play Slovakia in Montreal.

Domi, son of retired NHL’er Tie Domi, was the Coyotes’ first-round pick, 12th overall, in 2013 and plays junior hockey for the London Knights in Ontario.