Form and rules
How it works
Defining clauses identify the noun and normally have no commas; non-defining clauses add extra information and are set off by commas.
That can replace who/which in many defining clauses but not normally in non-defining clauses or directly after a preposition.
Object relative pronouns can be omitted in defining clauses; subject pronouns and pronouns in non-defining clauses cannot be omitted.
Formal preposition placement uses preposition + whom/which; conversational English often strands the preposition at the end.
Which can refer to an entire previous clause in a non-defining structure: He arrived late, which annoyed everyone.