They tested a LiDAR rigged car, and it stopped just like you predicted. As of 2021, Tesla uses only cameras for FSD, and not even radar (which my stupid fine Toyota truck has).
They tested the idea safely by building the wall out of styrofoam, or at least that's what it looks like when it blows apart :)