Evgeni Malkin and Jason Zucker each had a goal and an assist, and Rickard Rakell had three assists for the Penguins (22-15-6), who had lost two in a row and eight of 10. Casey DeSmith made 26 saves.
Zegras had a goal and an assist, and John Gibson made 41 saves for the Ducks (12-27-5), who have lost four straight by a combined score of 23-8.
"The result is the result," Anaheim coach Dallas Eakins said. "I thought we played a really good road game, one of the best road games we've played, especially against a really hungry and veteran team. … With our team, we have to play a perfect game, where we're at as a team.
"Obviously, in overtime, you have your chance at one end. If you don't put it in, you know it's coming back the other way."