PITTSBURGH -- Andrew McCutchen hit his 19th homer and Pedro Alvarez made up for some shaky defense by adding his 20th of the season as the Pittsburgh Pirates held off the San Francisco Giants 5-2 on Sunday night.