Many monarchies have been elective[1], and in some, the monarch is often picked from the same family. Even that is a better system than "first-born child".
[1]: https://en.wikipedia.org/wiki/Elective_monarchy