My HP was my last HP. I still hear of warranty and product issues. For me it was product with a bug from day one with HP failing to correct plus killing the laptop at 3 months in their service center. They shipped the now dead laptop back stating they had done all they could. Avoid.
Longer story at https://www.cnet.com/forums/discussions/laptop-buying-advice/#post-da7ca992-025a-4773-9086-f1d443e405ef

The Dell may not be on par with the i7 and GPUs and I find the display to be barely acceptable.

If these were my only choices, one of the Lenovo's after I ask them about this issue.
https://www.reddit.com/r/linux/comments/53ri0m/warning_microsoft_signature_pc_program_now/

Forget the Linux angle. On these models you can't install Windows either.