Compare with = Compare is followed by preposition ‘with’ when we look at the ways in which two things are like and unlike each other
Example: If we compare Jawahar Lal University / to the regional ones, we find the former / to be much more efficient.
Explanation: The comparison in the above sentence is a study in contrast; how one is unlike the other. So, ‘with’ should be used in place of ‘in’ and the correct sentence should be:
If we compare Jawahar Lal University with the regional ones, we find the former to be much more efficient.