OTOH if you try to install Linux on any recent MacBook Pro, you are in for hours and hours of googling weird shit with like only 2 comments on forums you have never heard of, and you will still never get Wi-Fi, sound, and sleep/hibernation all working at the same time.
It's just not worth it. If you are so hardcore about software freedom that you demand to install Linux natively on the metal then you should absolutely not, now or ever, buy a Mac.
OTOH if you just need to like, build some shit that only builds and runs on Linux, and you have $200 — VMWare. I don't like VMWare in theory (the Monsanto of tech companies) but I sure like them a lot in practice.
I have needed a Mac/Windows/Linux laptop for my job for the past decade. In former times, I installed Windows and Mac OS X, and ran the latest Ubuttnu in either VMWare Workstation or VMWare Fusion.
But since 2016 I just use VMWare Fusion for both Windows and Linux. If you want to use a Mac, I am confident that's the "best" approach.
(For me, that means "runs all GUI and CLI programs reasonably well, with the minimum hours per year spend fucking with shit just to make it work. But if you actually need efficient GPU acceleration or real high performance (like not a web app or GUI app, but some kind of computationally expensive whatever) under Linux — well, then get something other than a Mac.)