A.J. Lawson hit two free throws with 23.1 seconds left, and the South Carolina Gamecocks rallied from a 12-point deficit in the second half to beat Vanderbilt 74-71 Wednesday night to remain perfect in Southeastern Conference play.