This is something I've been coming around to over the last couple years. I "understood" compression for several years (the theory behind it), but never nailed down how to use it that well. What changed for me was sitting down with several different compressors to learn their different sounds so I would actually use them with purpose.
It's difficult when you're learning electronic music because everything is so in your face. The forum mentality a lot of us learned through can be hard to navigate. You'll find dozens of threads with subjects like "What's the best/your favorite compressor?" and not enough "What compressor will help me round out low, female vocals?"
I'd go through phases of using the fabfilter pro-c on everything cause Madeon said he used it, then phases of using ableton's stock compressor because Feed Me said it's all 99.9% of producers will ever need, then H comp cause Skrillex etc... What I've come to realize is that pretty much every producer I obsessed over was still learning how to do all of this shit themselves-they just managed to make really good music while doing it.
So I'd recommend every producer find the range of compressors that work for them so each instance is used with intentionality.