The G version is a great improvement optically over the older D version. It is a lot sharper, as well as has less CA.
If you are using modern digital cam bodies, you should just go ahead and get the G version. If you are using older film cameras, the D version should be the one to go for (due to the aperture ring).