Where exactly is this handled on which takes priority over one another - the player showing on top of the familiar, or the familiar showing on top of the player?

Any help/information would be appreciated. Thanks.