In my opinion the problem is not always the touchpad(hardware) there are a lot of great ones. The problem relies on the driver integration with the os especially the interface. The animation and precision is so smooth in macos that at least makes Me think this hardware is far betteter then others.
Drivers may cause issues in some cases but I'm using a Magic Trackpad 2 with Linux on a Dell laptop, and the problem is definitely the hardware. The external trackpad works flawlessly, the built in one is terrible.
It could still of course be drivers I guess, but it would be a bit odd if it were in this particular case.