I've found most laptop keyboards at least adequate, the MacBook that I'm forced to use for work is the first one that is objectively terrible. I've been told the ones <= 2015 were better in the keyboard department.
Long key travel, large layout. Makes programming comfortable again.
Gaming laptops in general seem to be nearly "no compromise" products. Battery life is as good as it can be - they max-out the watt-hours permitted by airlines. Keyboards can be massive. Screens, sound systems. Recently the weight has been reduced through clever hardware engineering:
https://www.dell.com/en-us/shop/dell-laptops/new-alienware-a...
The keyboard and port situations are both pushing the MacBook far enough out of that "close the lid and go, no worries" sweet spot it used to fall so solidly into that I'm eyeing other options, but I have some very bad memories of both battery life and trackpads on non-Apple machines, and my (limited!) interactions with such more recently haven't made me optimistic.
If you're doing CPU/IO intensive development work, they all fall down so quickly that I don't think it matters on the differences. It's really a browsing/videos metric, which is relatively unimportant to me when buying a workstation class laptop. I don't think I'd buy any laptop based on battery life as a primary factor, and the overall usability situation for most stuff on the market isn't as grave as it used to be (which your post accurately recalls).
I've owned the XPS15 with 6-core 8th gen Intel (maxing out the scales at 97Wh battery) and have a Thinkpad X1 Extreme. I've had MBPs in the past too.
For the touchpad on Thinkpads, I think they're pretty good if you're on Windows, most are anymore with MS Windows Precision drivers as the Thinkpads use. For me, a major driver for me towards these is the Trackpoint.
Depending on your usecase, my favorite machines on the market today are the X1 Extreme (development), X1 Yoga (consulting/development), Samsung Notebook 9 Pen 13" (home), and Macbook Air (home).
Some opinions in https://news.ycombinator.com/item?id=19485178 "Linux touchpad like a Macbook: progress and a call for help"
(I recall opinion was X1 was about as good as you get on a PC)
(I dislike the keyboard covers for pro - too much flex and too little travel).