From what I understand, the computer will (and should) reject the acceleration attempt in favor of the brake.
But, if you own a reasonably modern vehicle, try it :)
But, if you own a reasonably modern vehicle, try it :)
(On the other hand my 2017 Subaru Forester does not do the same; thankfully it has less of a tendency to roll backwards when releasing the brake on a steep hill.)