Most companies either rent their laptops or somehow sell them after a couple of years. They are usually in good condition and often the reseller gives you 1-2 years of warranty. I've bought a used X250 for <300€ a couple of years ago and I could not be much happier. Of course, the specs could be a bit better, but for most of my tasks (HW + embedded Linux dev) it's sufficient. For everything else i can spin up some beefy server somewhere in a couple of minutes. And since the hardware is on the market for quite some time, driver issues are mostly resolved.
Bonus: used Docking stations and spare power supplies are cheap and the battery can be hot-swapped.
Bonus2: since it's already slightly beaten down, making another scratch doesn't hurt as much as if it would've been a shiny new macbook.
edit: I think the official term is "refurbished". I can't see myself ever buying a new device again.
It ships with Linux preinstalled and with great support. So if you want Linux that Just Works, this is my recommendation. (Also if you want to DIY it with e.g. Arch, since the hardware supports Linux already.)
As for distro, Fedora is a great beginner distro.
I wouldn't recommend fedora as it uses RPM and SElinux which can be tricky, especially for beginners.
I am mid-advanced Linux user, I would went with Linux Mint, no matter is it for me or for somebody totally new.
a browser+IDE combo will perfectly fine even on a budget laptop with 4 cores / 8 GB RAM / generic SSD.
On my just-retired 8GB T410, trying to use a filter in Gimp without closing Firefox would start thrashing and result in the infamous Linux lock-up until power-cycled. Ubuntu 22.
I have several VMs with xubuntu 24.04, and they're doing fine with 2 cores and 3 GB RAM. but yes, I rarely have more than a dozen tabs open.