Specifically "comparison" sounds to me like (i.e. it reminds me of the doctrine about) one of [the 'fetters'](https://en.wikipedia.org/wiki/Fetter_(Buddhism)), i.e. "conceit" -- see [this answer](https://buddhism.stackexchange.com/a/9424/254) -- then see also [this Wikipedia](https://en.wikipedia.org/wiki/M%C4%81na).

I think the opposite of *mudita* is meant to be "envy" -- so see [issā](https://en.wikipedia.org/wiki/%C4%AAr%E1%B9%A3y%C4%81) where that's identified as one of the "unwholesome mental factors" etc.