Julianna B. answered 06/29/23
Writing and English Tutor with >1,000 hours one-on-one experience
The short answer is that "them" creates an independent clause while "which" creates a dependent clause.
If we keep "them" in the sentence as written, we need to either separate the second clause into its own independent sentence or change the comma to a semicolon. "Some of them are now offered over the internet as well as in traditional classrooms," gives enough information by itself to stand on its own. Granted, we need context clues to understand what "them" refers to, but it's still a full sentence.
If we use "which," however, we create a dependent clause that needs to be attached to an independent clause to be grammatically correct. In this case "which" functions as a modifier of "classes." For this reason, the clause containing "which" needs to be linked to the clause that it is modifying, which in this case means leaving it as a part of the same sentence.
This is a tricky one, and a pretty complicated explanation, so feel free to let me know if you need clairification!