In general, Linux runs really well if you filter hardware a bit ahead of purchase. For example, an all Intel machine with Intel wireless card will rarely give any trouble.
Edit: yes, it's a model you can buy with Ubuntu pre-installed.
(If someone knows which log file will tell me the exact reason behind a mystery wakeup after it happens, please share!)
https://www.kernel.org/doc/Documentation/acpi/debug.txt
I'm not exactly sure what options you'd need to enable/disable to just catch useful info.
Hopefully you don't need to enable everything, which may produce enough (realtime) logspam to make journald use a noticeable amount of CPU.
That being said, after each reboot I do need to put the machine to sleep using the power button once. After that the sleep/wake works perfectly just by closing/opening the lid. It's a minor inconvenience and I'm actually kind of loving the thing!
* bricks, but can be restarted if one opens the case and resets the BIOS.
Had a Dell XPS before that, it was way worse on the same issue. With MacBooks, I didn't have that issue as much with personal machines, but I mostly used them for travel. I've had pretty bad issues with work MacBooks.
Love my System 76, but there's still work to be done there.
My personal ThinkPad E495 has pretty much flawless driver support.
Granted, I'm running different distros (Ubuntu on the Dell, Solus on the ThinkPad) but the fact that the Dell Precision is certified specifically for Ubuntu is pretty disappointing.
This is why I have been using System76 personally for the last 5 years, since I first found out about them when given one by an employer. The first linux box I have had that didn't have little problems like that.
Disclaimer: not affiliated in any way, just a happy customer for work and play.