The Giants erased a five-run first-inning deficit, slugging three homers off Scott Kazmir and beating the Dodgers in Sunday's series finale, 9-6, on Joe Panik's two-run tiebreaking double off J.P. Howell at AT&T Park.