The Kingdom overtakes South Africa, thanks to sustained industrial upgrading, diversification of exports, and a strong industrial policy.