THAT = can only be used in restrictive relative clauses. E.g. He is the man that hit me. You need 'that hit me' to identify the man. You can't leave it out.
WHICH = can be used in both restrictive and non-restrictive relative clauses. E.g. That car, which I saw yesterday, was stolen. 'Which I saw yesterday' can be omitted'. I.e.