No. The original DJI Mini 2 does not have forward, rear, or side obstacle avoidance that will automatically prevent it from flying into a wall. Its downward sensing system helps with functions such as positioning and landing under suitable conditions. Treat walls, fences, trees, wires, and every other obstruction as the pilot's responsibility. Plan a clear path and enough room to slow and turn before the aircraft approaches the obstruction.

Why do the sensors underneath not see the wall?
Sensor direction matters. A downward-looking system receives information about the surface beneath the aircraft, subject to its operating limits. A wall directly ahead can stay outside that field while the drone travels toward it. A forward-looking camera may show the wall in the live image, but a camera picture on the pilot's screen does not give this Mini 2 a forward automatic braking function. These are different uses of different parts of the aircraft.
The product name matters as well. Features described for a newer or higher-tier Mini model may be absent on the original Mini 2. Find the exact label and compare it with the sensing-system diagrams in the matching user manual. If a tutorial shows obstacle graphics around several sides of an aircraft, verify that it uses your model. Similar aircraft shells and similar flight app screens can conceal substantial hardware differences.
Why might it look as if the aircraft stopped for an obstacle?
A positioning drone usually slows after the pilot releases the movement control under suitable conditions. If a pilot releases the stick in front of a fence, it may stop well short of the fence. That observation demonstrates the response to a control input in that situation. It does not establish that the aircraft saw the fence. Never fly toward an obstacle to test which explanation applies.
Likewise, an automatic landing routine can pause above a surface that the aircraft cannot assess as suitable. A downward pause during landing tells you nothing about what will happen during sideways flight toward a tree. Return to Home also needs a clear route appropriate to the specific model. Before takeoff, examine the space available for the normal flight and for a possible return, including obstructions that sit outside the main camera view.

How can a beginner practice stopping without a wall?
Choose a wide, open space and use a visible patch of ground as the intended stopping reference. Leave ample clear space beyond it. Make a small, slow movement from a steady hover and release the control early. Observe where the aircraft actually settles. Compare repeated passes in similar conditions and keep the aircraft close enough to see its direction and the space around it.
If a bystander suggests using a wall as a backstop, choose an imaginary stopping line farther into the open instead. Stop the exercise if wind, visibility, or people entering the area reduce the space available. A practice area that allows an imperfect stop without a collision teaches more than a precise-looking maneuver that only works when every input is perfect. Check the remaining clearance again before reversing direction for the return pass. Ground references remain useful even after the pilot becomes confident because they reveal changes in stopping distance when the wind or flight mode changes.