I was worried about the idea of a fully electric braking system because of the failure mode you mentioned. It looks like hydraulic brakes are not ubiquitous.
"Some Tesla vehicles use hydraulic brakes, but not all. Recently, Tesla has equipped its cars with a full self-driving system. Tesla’s latest car comes with full-electric Brembo brakes. These brakes use electric actuators instead of hydraulic fluid pressure to actuate."[1]
I'd be curious what mitigations they put in place regarding an electrical system failure.
[1] https://www.mech4cars.com/tesla-model-s-braking-systems-all-...