The native Tagalog word for “compare” is hambing.
The Spanish-derived word — more widely used — is kumpara.
Ikumpara mo ito sa hawak mo.
Compare this to what you’re holding.
Hindi ko maiwasang maikumpara ang batang iyon sa sarili ko ngayon.
I can’t avoid comparing that child to my current myself.