a compressor can be used as an eq,
actively bringing down a specific frequency so it does not stick out.
but, you could do the same thing with an EQ.
the thing to do, would be to use both...
first the eq, and get the bass track to be nice and flat, so it's easier to mix...
then add compressor for color, and level control.
one before the other.