Kane Williamson and Rachin Ravindra showcased a formidable batting performance, leading New Zealand to a resounding 50-run victory over South Africa.