ToF sensors are cheap, small and good for simple obstacle detection. A 2D LiDAR is better when the robot needs a map or repeatable navigation around a room.
Do not buy LiDAR before defining the behavior. Many robots only need front distance, cliff sensing or dock alignment, which can be solved with cheaper sensors.