If the challenge is on the ground either that the person challenged is not the person whose name appears on the index, or that he or she has voted that day, the challenge shall be determined in favor of the person challenged if that person takes the oath as set forth either in Section 14243 or 14245.