If you are ok with the crop factor, I think the 50mm 1.8G is a better lens. I have owned both.
Sorry but why does everyone keep mentioning focal length?? This is one thing that confused the heck out of me as a beginner a couple of years ago and I dare say it will confuse newbies now.
A 35mm lens is still 35mm regardless if its on a DX or FX.
Its the field of view that's affected by the 1.5 crop factor, not the focal length.
Anyway, both good lenses.