If "yes," then the clause is non-essential
(or descriptive). Use the relative pronoun "which"
and set off the clause with commas.
If "no," then the clause is essential
(or defining). Use the relative pronoun "that" and
don't use commas.
Hint: Usually "which" is overused.