Then, with two outs, the Pirates closer surrendered back-to-back doubles to Ryan Ludwick and Cozart as the National League Central champion Reds took the rubber match of a three-game series.
Sean Marshall (5-5) collected the victory and Aroldis Chapman struck out two en route to his 37th save.
The Reds tied the Washington Nationals for the top seed in the National League.
Garrett Jones hit a two-run shot for Pittsburgh.
Trader Joe's: Car crashes into Long Island store, injuring 11
Wisconsin business offering 'therapeutic cuddling' forced to close