Galaxy mergers on a moving mesh: a comparison with smoothed particle hydrodynamics