They mean different things, so it depends what you are trying to say.
"the difference with online universities" (somewhat informal phrasing) refers to the difference between online universities and other types of institution (most probably other types of university).
"the difference between online universities" refers to the difference between one online university and another on