Yup! Considering that cpu, debian will be painful, but ubuntu as a server is asking for trouble. Look for fedora server, for the love of god even an arch server. Do your future self a favor and avoid that grilled roadkill that is ubuntu.
Fedora server comes with cockpit if thsts what you want.
For the 370, fedora works well.
Pinch of salt- i got burned too many times with ubuntu server, I run an extensive homelab and I'm a regular at the burns ward. I loathe ubuntu with the energy of a Wolf-Rayet star.