Pinch hitter Hector Sanchez had a tiebreaking sacrifice fly in the 10th inning, and the San Francisco Giants beat the Los Angeles Dodgers 3-1 on Thursday night in the opener of a four-game series.