Riding on Dean Elgar's 14th Test century, South Africa defeated India by an inning and 32 runs in the 1st Test at the SuperSport Park.