Higher melting point between X-COOH and X-OH, which is higher? Both have hydrogen bonding, but not really sure. Does it deal with resonance structure of the conjugate base?

I would go with RCOOH because O of the C=O is much more negative than the O of OH.