Key for me is to "group" cables. For example, I have a bag of USB-C cables, a bag of USB-A cables, etc. Grouping them is key to deduplicating. It's easy to look at a single legacy USB A-to-B "printer" cable in isolation and think "I might need this someday!" Because you really might need it someday. However, if you group them you might see that you have ten of them. And then you can get rid of... maybe 8 of them. I a…
For example, I have a variety of USB C to USB C cables but they each have their own capabilities. Some support high transfer speeds, so I keep them around for connecting SSDs, while others are just USB 2 speeds so they are strictly for charging.
Another case is I have a very specific USB C to USB C cable that looks incredibly generic, but it is for connecting a screen tablet to a laptop because the manufacturer decided to make the port recessed, so only their cable fits. If this cable wasn't labeled as for a specific device, I would have donated it years ago.
It is some effort, for those who don't like to tinker with tech I can understand why they just shove them all into a box in the back of their closet. But I find that culling my cables at least makes me aware of what I have and don't have.
One other suggestion I have is just buying a longer cable than you think you need because eventually you'll have the need for it anyway. I have so many 3.5mm aux cables because I kept changing my desk set up and needing to buy longer and longer cables. If I had just bought the longest cable I could have at the time I would have saved myself some headache.
Another tip is adapters. Sometimes it's easier to just have cables of one type and a bunch of adapters for when you need them rather than having a ton of different cables for each possible scenario. I used to have a mix of RCA and 3.5mm cables but never had the right combination of what I needed at the time. Eventually I caved in and just bought a ton of adapters so I could standardize all the cables and use adapters as needed. Same with USB C cables.