It seems rinnegan is the evolution of sharingan, so rinnegan is better. But on the other side, it really depends on the user, idon't think pain's rinnegan can beat madara's sharingan