It depends on how you want to use it. Wish works just as effectivel as Moonlight in terms of healing, but Wish allows you to heal other pokemon in your party by switching in on the right turn. This can be really helpful to recover from Stealth Rock/Spike damage, and to help recover in general.
So, yeah. Moonlight is (usually) better for healing purposes, whereas Wish is more effective as team support.