Sure, for training purposes. You know, on a long ride, you don’t want to overdo it. Of course, the actual race bike needs the button for verisimilitude, and it would be a big mistake if a batter was left in, and…
Surely there are certain logistics, like making sure it's charged before the race, or asking, "wouldn't I perform better by losing the extra weight?" being brought up before, no?
I've heard stories of freezing ice inside the seatpost. It will stay frozen long enough to pass the pre-race weigh-in, but melt away before the start of the big climb.