At first I thought it was just the drone misrecognizing the tree as the OP but now I know I was wrong.
Slup has done a very good analysis on the cause of the crash. Basically, the IMU suddenly went crazy and told the flight controller that the craft was making a sharp right turn. This is very different from the GPS information which indicated that the craft was going straight forward. From the video, the GPS was correct.
At that moment the flight controller needed to make a very quick decision on which to trust, the IMU or the GPS ? Very clearly the GPS was chosen because the flight controller did not react by attempting to correct the direction of the craft by turning sharply to the opposition direction ( left ).
However, the sensor fusion algorithm still gave a very small weight to the IMU's output so the final judgement of the flight controller was that the craft was making a shallow turn to the right. The logical reaction was to correct by commanding the craft to make a shallow turn to the left and that's what the video has shown. Unfortunately, a tree was standing there. As the IMU has malfunctioned, we cannot expect the APAS system to work to avoid the obstcale.
The IMU of the craft is clearly faulty. I doubt very much if calibration can fix it. Suggest to send it back to DJI for a replacement or similar incidents will happen again.