Ubuntu on servers has always been "a choice", Debian is definitely the preferable of the two. Even on desktops, I'd sooner suggest Debian or Mint than Ubuntu. Ubuntu is a dead distro coasting on a reputation 15(+) years out of date.
(And it used to be that Ubuntu was still a defensible choice for maximizing the chance of getting help online, but LLMs have effectively neutralized this advantage.)