Specifically "comparison" sounds to me like (i.e. it reminds me of the doctrine about) one of the 'fetters', i.e. "conceit" -- see this answer -- then see also this Wikipedia.
I think the opposite of mudita is meant to be "envy" -- so see issā where that's identified as one of the "unwholesome mental factors" etc.