An election shall not be set aside on account of illegal votes, unless it appears that a number of illegal votes has been given to the person whose right to the office is contested or who has been certified as having tied for first place, which, if taken from him, would reduce the number of his legal votes below the number of votes given to some other person for the same office, after deducting therefrom the illegal votes which may be shown to have been given to that other person.
Ca. Elec. Code § 16203