Matt Kemp hit his first two home runs at Dodger Stadium since late in 2012 and Hanley Ramirez slugged his first two homers this season, helping Los Angeles beat the San Francisco Giants 6-2 Sunday night to avoid a three-game sweep.