Except as provided in subdivision (b) of Section 8142, only the candidates for a voter-nominated office who receive the highest or second highest number of votes cast at the primary election shall appear on the ballot as candidates for that office at the ensuing general election. More than one candidate with the same party preference designation may participate in the general election pursuant to this subdivision. Notwithstanding the designation made by the candidate pursuant to Section 8002.5, no candidate for a voter-nominated office shall be deemed to be the official nominee for that office of any political party, and no party is entitled to have a candidate with its party preference designation participate in the general election unless that candidate is one of the candidates receiving the highest or
second highest number of votes cast at the primary election.