The Giants coughed up a 4-2 lead in the seventh and watched as Tyler O'Neill crushed a walk-off homer off Mark Melancon to give the Cardinals a 5-4 win 10 innings on Saturday.