Does word "compare" have the same meaning in the following two sentences?

This car does not compare with our line of Mercedes.

You can't compare my problems and yours.
different meanings