If you want some irony, on a recent Ubuntu install I was able to access WiFi out of the box but the small windoze dual boot partition refused to connect to a WiFi 6 router. Tried upgrading driver, downgrading drivers, nothing… The computer came shipped with windows 10.
Or you’re stuck within the confines of a horrible legacy system which the business will not allow you the time to refactor/rewrite but still want your code to be somewhat readable.
But in general, I agree with your argument. When writing from scratch or improving reasonably well designed code, often documentation could be replaced by breaking it up into another function or naming variable better. It’s a bit of a code smell for violating the SRP. And yet there are times that documentation is needed for the “why”. Things are nuanced I guess.