A legitimate pope....
Is chosen by the College of Cardinals who declare him to be the Pope. Thats as legit as it gets according the RCC doctrine.
L
Not when the election rules were violated.