Starting with Windows 11 25H2 Build 26200.7019 (or 26100.7019 on 24H2) and newer, “Update and shut down" will shut down, not reboot.
Both Windows 10 and Windows 11 have a bug that causes your PC to restart when you choose the Update and shut down option.