Drone with obstacle avoidance

Hi all,
Does anyone know if there are drones you can buy that stop themselves from crashing into things? And also, are there any drones good for flying in places with lots of trees?

Enhance indoor drone flight with obstacle avoidance! Terabee
With TeraRanger Tower, you can incorporate obstacle avoidance functionality into your drone.
When installing the TeraRanger Tower, ensure that the sensor labeled TR0 on the TeraRanger Hub PCB board is positioned forward-facing.

The DJI Phantom 4 Pro is a premium drone that incorporates obstacle avoidance capabilities.
It employs tri-directional obstacle avoidance, enhancing safety during flight.

These systems collect data from onboard sensors and external sources, then determine optimal maneuvers for the vehicle to evade obstacles or hazards, ensuring safe navigation.