Trevael Ifixit: $24 for the clamp + $19 for an iOpener, $2 extra if you want a screen suction cup, its moderately hard but anyone with repair experience can do so.
Even if you broke the screen (the part you are taking off to get to the battery) you can buy a replacement for ~$100
Ifixit themselves says this only takes about 1-2 hours, and is only moderately difficult. (https://www.ifixit.com/Guide/Google+Pixel+6a+Battery+Replacement/152516)
Please don't comment on things you don't know about, GOS themselves have already given good points about the battery and the main topic. GOS can't even implement this feature, since you can always force a shutdown by a press and hold. Not to mention just draining the battery.
Once the phone is shutdown, all you would need to do to make this issue mute is to enter fastboot, then recovery, then call a factory restart. Now the phone is brand new, there is no way around this