Something else to consider.
Starting in April 2015, with the release of the 12" Retina MacBook, Apple used "butterfly key switch" mechanisms in many of their MacBook, MacBook Air, and MacBook Pro keyboards. They originally introduced this design because the 12" Retina MacBook chassis was so thin (allegedly too thin to accommodate a regular keyboard), but soon used it everywhere.
Unfortunately, if dirt gets trapped in keys with this design, it can be very hard to remove. Worst case being that you must replace the entire keyboard (and components glued to it) at a very high cost.
Apple had a keyboard service program to repair or replace "butterfly switch" keyboards that stopped working – but that program ended a while back, and they are no longer making those free repairs. Furthermore, some of the Macs that had the bad design are so old that you might not be able to get them repaired even if you offered to pay the bill.
The 16" 2019 MBP – which can't run Mojave – has a scissor-switch keyboard that Apple called a "Magic Keyboard." It marked the beginning of a switch away from the "butterfly switch" design – and none of today's Mac notebooks use a "butterfly switch" design.
But the ones that you're looking at? The ones that are as recent as possible, while still being able to run both Sierra and Catalina? I suspect you will find that they are all on the "butterfly keyboard" list.
iDropNews – FAQ | Which MacBooks Have the Butterfly Keyboard?