I had both but ended up selling the 50/1.8 because I just liked the images I was making with the 40/2 more. I know objectively the 50 has the upper hand with respect to test scores, but I just appreciated the 40's output (as well as slightly wider FOV) more. However, I tend to photograph mostly people so you may have different needs.
If you're interested, I've posted some of my 40 images in the 40/2 Z thread, as well as on my own site.
—Peter.