For near-guaranteed compatibility, there are dedicated manufacturers like System76 and Tuxedo. Framework also claims Linux compatibility but for set tested distros (Ubuntu and Fedora).
Generally, anything with Intel/AMD graphics and Intel Wifi is pretty much guaranteed to work in my experience. For laptops, high-DPI displays can be problematic but the fixes are on Wayland which is getting higher priority now.