The prepositions "compared to" and "compared with" are both used to compare two things. However, there is a subtle difference in their usage.
Compared to is typically used when the two things being compared are similar in some way, but different in others. For example, you might say "The new car is much more expensive compared to the old one." In this sentence, the new car and the old car are both cars, but they are different in terms of their price.
Compared with is typically used when the two things being compared are very different from each other. For example, you might say "The new car is much more expensive compared with the bicycle." In this sentence, the new car and the bicycle are very different things, so it is more natural to use "compared with".
In general, it is best to use "compared to" when the two things being compared are similar in some way, and "compared with" when the two things being compared are very different from each other. However, there are always exceptions to the rule, and sometimes it is possible to use either preposition interchangeably.
Here are some examples of how to use "compared to" and "compared with":
Compared to the old car, the new one is much more expensive.
Compared with the bicycle, the new car is much more expensive.
The new design is much more modern compared to the old one.
The company's values are much more aligned with those of its competitors compared to a few years ago.
The two cultures are very different compared to each other.
It is important to note that there is no right or wrong answer when it comes to choosing between "compared to" and "compared with". The best way to choose is to consider the context and meaning of the sentence.