There are also several mods that do this. In the one I made, Inherichance, you decide with a game rule which setting you want: play as a random heir, play as the weakest heir (i.e. the one that inherited the smallest domain) or play as the strongest heir.
It's arguably better than the Switch Character vanilla feature, because if you go for a random heir, the fact that you don't get to chose changes how you plan succession. Plus it's seamlessly integrated in the Succession and Lineage windows, which is nice.