exoALMA. XIII. Gas masses from N_ 2H^+ and C^18O: a comparison of measurement techniques for protoplanetary gas disk masses