If the committee, or a majority thereof as aforesaid, shall report that either of the candidates had the greatest number of legal votes, and ought to receive the nomination or to be admitted to the office, as the case may be, such candidate shall thereupon be entitled to such office or nomination.
25 P.S. § 3328