Some agendas instruct players to elect either a player or a planet. When a player casts votes for such an agenda, that player must cast their vote for an eligible player or planet as described on the agenda.
This is the official Living Rules Reference wording under Agenda Phase.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.