Laptops for devs are a pain, especially since IBM sold Thinkpads to Lenovo. Apple makes reliable and stable hardware, and Linux generally just works on it. That's just not true for almost all of the other manufacturers.
Linux user here. I have had little luck with graphics working well on the Macs. The pro's used to have dual graphics card (nvidia and built-in) and I never managed to run linux nicely on them. The best luck I had was with running linux on parallels something which messes up all my keyboard shortcuts.
I switched to the thinkpad (currently, lenovo carbon x1) and honestly it's fantastic. Never had a better laptop in my life (way better than Macs).