Ha-Seong Kim's two costly errors were the difference as the Giants captured the rubber match of a three-game series in the Bay.