Is there any consensus when it comes to this question? If it depends then it depends on what exactly? I'm interested in the decision making in this kind of situation.
Thankfully, I never had to make this choice. In my training I learned to stay in the plane and flare at the height of the treetops, then let the plane sink into the branches and have them stop and suspend the aircraft. The fuselage is quite effective as a protective shell, and up on top the branches are thin and flexible.
Use the parachute only to hoist yourself down from the stricken plane, if necessary.
Two-seater after landing in trees at Boberg glider port (picture source)