Alfonso, that and which are interchangeable, but only in defining relative clauses.
The house which I told you about is green
The house that I told you about is green
In both of these sentences we can presume there is more than one house around, but one of them, the one that/which I told you about, is the green one. I am defining which house is being talked about
The house, which stood on the hill, was green
Here, you cannot use "that" because "which" introduces a non-defining relative clause. There is only one house, the green one, the fact that is on the hill is "extra information" which is why it is enclosed in commas. I could remove "which stood on the hill" and it wouldn't substantially alter the sentence.
It is easy enough in simple sentences to spot defining/non defining relative clauses, as long as the commas are used!
My sister, who is a nurse, lives in London
My sister who is a nurse lives in London
I give those 2 sentences to my students and ask them to tell me how many sisters I have.
In the first, I only have 1, in the second we don't know exactly, but more than 1, because in the first sentence, the fact that she is a nurse is an "extra information" clause whereas in the second it defines which sister is being talked about.
(nothing to do with which/that, but explains relative clauses a bit better)