It's compile drivers or research your hardware before you buy it. The latter is highly recommended. If you go against the common advice, it's kinda your problem. If you bought the hardware before installing Linux or it was given to you, well, that sucks. That said, driver problems, especially important ones, aren't that common anymore.
Nailed it. My Linux machine was built from the retired parts from my main desktop, so it very much is stuff that served me well for several years under Windows.
But the advice is still very much to research the hardware or buy a prebuilt with vendor support.
Compared to a decade ago, more stuff just works; especially noticeable with graphics drivers. But when things hiccup, which they still do, it still requires quite a lot of tech savviness to solve.