Compared to or compared with Grammar & Punctuation …
https://grammarist.com/usage/compared-to-or-compared-with/
Compared with is usually referring to two objects of similar classification (e.g., dogs to dogs and cats to cats). Within this similar order, the user is speaking of the differences between the two objects of comparison. Compared to is referring to two items in different classifications (e.g., dogs to cats or cats to cars). In these differing classifications, the user is pointing out …
DA: 13 PA: 12 MOZ Rank: 56