I used Ubuntu in my college for some light programming and felt really happy about it.
I am more interested in switching to Debian 12 than Ubuntu, since the former is really stable. Also, I came to know installing Debian is easier since it supports non free firmware.
Debian is not easier than Ubuntu, the opposite is the case, you have to tinker around with some things to get them work how you want them. Usually you end up with a system which is more suited to your needs and preferences, but you have to put more work into it.
In terms of stability, it’s not like Ubuntu LTS Desktop will just break down, I use it way over 10 years and it never end up in a broken state (well it did, but it was my mistake). It’s more of a server thing, were you can just install updates without having to fear that something got incompatible.
I don’t think Ubuntu is easier than Debian. Especially now that they’re pushing for snap instead of apt/deb packages. It’s confusing as hell.
Just be aware that “stable” in the linux world means “old.” All of the software in the Debian repos will be much more out of date than some other distros like Pop!_OS, Fedora, or even Ubuntu. If you upgrade to newer hardware, or want to use newer software, Debian may not support it without jumping through some major hoops.
From the software part, I think this is only an issue if you’re a developer. If you want something like the most recent LibreOffice, you can just install it via Flatpak. A bigger issue arises if you need something like a more recent Python or GCC.
From the hardware part, you should of course always check beforehand with a live distro if your hardware is supported. Debian 12 however is very recent and should support most recent hardware and it will keep supporting it unless you upgrade e.g. your GPU.