Mookie Betts broke an eighth-inning tie with a three-run homer and the Los Angeles Dodgers beat the San Francisco Giants 9-6 on Thursday night after blowing a five-run lead in the seventh.