That vs Which (Solved using Gerund)

In a comment BillJ wrote:

It's really of no consequence whether the relative clause can be replaced with a gerund-participial clause. It is a free choice here between "that" and "which", despite the silly ban on integrated wh- relatives. There is no difference in meaning or in the syntax, other than what follows from "that" not being a pronoun, of course.