Ubuntu vs Debian, which operating system should I use?

I do not know which operating system I should use, between debian 9 and ubuntu LTS. Ubuntu sometimes gives me the alert to restart the system, but not with debian 9.

Do you think debian 9 is safer and stable than Ubuntu 18.04 LTS?

TIA