Are real or fake Christmas trees better for the environment?

Spoiler: real trees narrowly edge out fake ones, but it does depend.