A.J. Pollock, Paul Goldschmidt hit home runs in victory