It’s not hardware alone for certain. You need good software
and hardware, with the latter defining the upper bounds of how good the former can be.
I’ve experienced the reverse with macOS running on generic laptops via hackintoshing. Potato trackpads are still potatoes under macOS.