If the point of comparing something against something else is to confirm agreement – you mean – and you should say “agree”.
If you don’t expect them to agree, then compare.
So for example – you would expect to AGREE a total payroll expense to the amount posted to the general ledger – but if making your own estimate of what the expense should be (a proof in total) – you can only compare that.