SSAO is that. The very first and most basic implementation of it years ago was that. It just takes the depth map of the view and computes occlusion based on that. Nothing more. It's not a poor implementation or anything, it just is what it is. HBAO is better, and I believe the third option is even more advanced and more physically accurate.