I imagine there are only maybe three people as stupid as me to try this, but just in case: it works fine when the battery runs out; but it does _not_ work during the OS update process.
Interestingly, but not exactly related - the OS update process will not start if you're connected to CarPlay. Probably to avoid automatic updates from triggering when you plug it in to charge in the car.