I mean we're talking about one architecture from a decade ago where there were some workloads which got slower from AVX-512, right?
Today, a 512-bit version of an algorithm will typically be significantly faster than the 256-bit version of the algorithm.
This is what I see on my TigerLake processor, AVX-512 is always faster when I profile than AVX-2. And a lot of the code in one of my projects is complex audio DSP so is sensitive to performance quirks and stuff (which I've done my best to minimize but given what that project is trying to do that turns out to be incredible difficult without losing quality).