Need to learn about Auto Pilot and how to use it. That's most people's first (and costly) mistake. They don't read the instructions! If you were parking, Auto Pilot was NOT ON at the time you hit the accelerator and drove into the crash. As others said, driver input always overrides Auto Pilot. AP is a DRIVER ASSIST feature, not an idiot proof feature. It is not LEVEL 5 autonomy. It is a glorified version of Traffic Aware Cruise control with lane keep assist.
Tesla's will provide automatic braking in some instances where it believes you're coming up on a car too fast and not slowing down. But, it can't respond in that manner to override you slamming the throttle instead of the brake. Clearly, not even a human can do that. Too little space to react once you've made the mistake.
I'm glad you're safe and unharmed. Please be safe out there and, to everyone, learn how to use features of your car and it's capabilities BEFORE something bad happens, not after its too late. Not that I'm a pro or anti vaxxer, but it's like most of the anti-vaccine people who refuse to get it for no other reason than being stubborn, then after they contract COVID, ask "can I get it now?". No! It's too late now. Somethings you have to be smart enough to realize that the prevention and preparation outweighs the risk/reward of hoping it doesn't happen to you.