Visual odometry issue

I was trying to fly through a pipe (1.5 m in diameter) with an Anafi AI, both in simulation and on a real model.
But the drone crashes into the edge of the pipe when it is in hover mode.
However, in simulation, when I add a texture to the pipe (such as a concrete texture), there is no problem.
I suspect that some visual odometry is being used to stabilise the drone.
Is that correct?
And is there a way to disable it and use only the inertial measurement unit when the drone is in low-texture environments?
Thank you in advance for your reply.