On my Redmi 7, my Clock app Settings -> Additional alarm settings, has a feature Shutdown alarm, which I can disable so that the alarm does not go off after the device is powered off. It's a very useful feature, but I wish I had discovered it before my alarm woke me unnecessarily at 5:25AM, and not after. :-)

Only top voted, non community-wiki answers of a minimum length are eligible