Section 25(2)(b) in The U.P. Municipalities Act, 1916
(b)declare another candidate to have been duly elected, whichever course appears, in the particular circumstances of the case, the more appropriate, and in either case may award costs at its discretion.