I actually have not had issues with Linux. I used ubuntu on lenovo for years.
Only when trying to install cuda compiler on Ubuntu with my desktop.
Buy now I am wiser: bazzite KDE with nvidia GPU is amazing. Use flatpacks for everything (maybe snap for things like IntelliJ) and if you have to, then use homebrew.
So far not a single issue.
If you buy a PC with hardware tailored(like macos) for Linux it will be absolutely flawless. Not really a fair comparison.