Precision comparison of the quantum Hall effect in graphene and gallium arsenide