I was thinking about changing my server’s OS (currently using Ubuntu server)

Which would be the best in the case of only using docker and ZFS?

I thought that Debian would be more debloated and efficient but I need a Web UI and from what I have seen TrueNAS is very complete and is not absurdly slow, let me know your thoughts!