I have been using windows all my life with linux on dual boot and VMs. I mostly had no issues but lots of GPU issues with Nvidia. I’ll now be involved in research (ML, DL, LLMs) and I will require my system for activities for these research and other tasks (will be doing an MS and then a PhD related to the above fields). So with all these considered, is a Macbook worth it? If yes, which one should I go for?

I was considering MBA M2 16gb ram, 512ssd

Budget: ~$1800