South Africa has a more diversified economy, with a range of sectors contributing to GDP, while Nigeria is heavily reliant on the oil and gas sector.