I learned this the hard way a few years ago. I returned a rental in a hurry, the agent glanced at it, handed me a receipt, and I went to catch my flight. About two weeks later I got an email with a charge of $400 for a "rear bumper scratch" and a photo that was clearly taken in some dim garage. I had no way to prove the scratch was there when I picked it up, because I hadn't checked, and I hadn't taken a single photo.
I spent three weeks arguing back and forth with their claims department. They kept saying the car was "returned in a different condition," and I kept saying I had no proof either way. I ended up paying about half just to make it stop.
Now I do this every single time. When I pick up the car, before I even put my bags in, I walk around it slowly with my phone and record a video. Wheels and rims, bumpers, windshield, roof, door edges, the interior seats and dashboard. I say the date and time out loud at the start so the timestamp is obvious. Takes about 30 seconds. I do the same thing again when I drop it off, in the return lot, before I hand over the keys.
Last year I had another rental company try to charge me for a cracked windshield. I replied to the email with the pickup video attached, and you can clearly see the crack at the bottom corner on the passenger side before I ever sat in the car. They dropped the charge within a day, and I got a short apology.
Bonus tip: don't delete the videos until at least a month after the final charge posts to your card. Storage is cheap, $400 is not.