But Dorne is cognatic primogeniture, meaning they treat female claims the same as males. So, because Rhaegar and Viserys are dead, Dany has the next best claim, followed by any nieces or nephews. This is why the Lannisters feared Dorne would try to install Myrcella onto the throne.