RPC function vs RoleAuthority check?

So it’s just a matter of choise? My method would produce the same result?