I'll suggest you go for mbp. I have used linux and windows for coding earlier in my college days but in both of them, things could break if you got into customization or tweaking and as a dev you dont want to be fixing os issues in your valuable time so macos is very stable and controls your access to certain parts of the os unless you really really intend to. This gives you the benifit of focusing on your work and not the os. UI and UX are the best in macos eg touchpad gestures etc and slick UI. Last but not the least hombrew which is the best package manager I believe which manages all packages you need especially coding related tools. Go for mac and I promise you wont look back ever again.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.