Andile Phehlukwayo ensured South Africa stayed on top in their final ODI against Australia on Saturday with a crucial wicket.