The tree, which had no leaves, was a birch.
Which is used in nonrestrictive clauses, always set off by commas.
The tree was a birch. The fact that it was leafless is incidental.
The tree that had no leaves was a birch.
That is used in restrictive clauses, never set off by commas.
The birch tree under discussion is that one, the leafless one.