Unity or Unreal which one best for XR and VR?

Is Unity better for XR and VR than an unreal engine? I love unrel engines. But many developers say if you’re going for XR or VR, Unity is best.