When we compare two things to show they are similar, we should use the phrase "compare to". When we compare two similar things to show their difference, we shold use the phrase "compare with" instead.
The second and thrid links you gave are for the adjective "comparable" not for the the verb "compare".