Relative pronouns that can be used in defining relative clauses are: who (that), which (that), whose, where, when. What cannot be used. Which and that are often interchangeable. In defining clauses, however, that is commonly used instead of which after superlatives, every(thing), all, only, some(thing), any(thing), no(thing), none, little, few and much.
That cannot be used to introduce a non-defining clause, so it cannot be used when a comma separates the relative clause from the main clause.
Which is used with a preposition/particle in: