Buy the cheapest MacBook model you can find with an M-series chip and as much RAM as you can stomach the cost for.
I'd say 8gb is barrrrre minimum for doing app development. You'll want 16gb.
Listen, I'm the last person you'd expect to recommend a Mac. I am an Android guy. No other Apple products in my place.
...but I've owned every top end model from pretty much every relevant PC manufacturer just trying to find something as reliable, hassle free, and well built as my work Mac and it just doesn't exist.
The MacBooks are just in a whole other class. The battery life, the standby time, the speed of those M1/2 chips, runs cool and quiet.
I'm neutral on MacOS. It tends to stay out of my way. I don't use any of the Apple apps. It is usually stable as hell. My work MBP currently has an up time of 68 days without a reboot, and the only reason it rebooted last time was for security patches.
Build quality is unmatched, screen is great, trackpad is still a generation ahead of anything else, keyboard is great.
Iโm not here to โroastโ but M chips arenโt fully supported for everything a software engineer could be compiling/running. At the current moment, theyโre not quite as well-supported in every single way possible like an x86 chip would be for dev environments (even though we all really want them to be).
I second the Mac recommendation. I use Linux on my desktop, but use Mac for laptop, after 6 years of using MBP (I still use my mid-2015 15" MBP for mobile development and day to day work), I can vouch for their quality (but skip the 2017, 2018, butterfly keyboard + touchbar crap, our company have buttload of those broken). Their M1/M2 battery life is just out of this world.
If OP worry about spending big and having buyers remorse, I recommend MBP.