When a Ruler dies, there should be a short time where different candidates can attempt to win over votes with bribes of gold, favors, better feudal contracts, hooks, ect. If there is a tie, each leading candidate can receive an ultimatum to surrender their candidacy, or spark a civil war along the candidate lines.