Getting a keyboard and touchpad case setup totally changed my view on them for productivity. As a primary driver I'd still opt for a laptop but they work great when traveling.
The price and weight of an iPad with all the accessories is approaching a laptop anyway, while still remaining an inferior alternative. And there’s no guarantee you won’t have to replace a keyboard case after you upgrade an iPad due to intentional physical incompatibility between the models