The house here came with an 80 gal AO Smith Promax electric. Shows it was installed when the house was built in 06. When the HVAC guys inspected it when they installed my new HVAC when I moved in, they said it still looks to be running strong.
Electricity here isn't as much a cost issue as it is in some other states, so electrics seem to be popular. While I know they have them, I don't believe I ever lived in a place or saw a place in CA with an electric. Gas everywhere, even rural areas where they were propane. Of course that's standard and not tankless. The last rental house I had there was built new in 08 IIRC, and that one came with a tankless, which it seemed builders were moving to at the time.
As for maintenance and breakdowns, I'm wondering if it's less to do with gas vs electric and more to do with age, older being better. I had a great plumber for my rentals in CA, and the couple of times something needed to be fixed on a water heater at my triplex, which was built in 87, I would say, "Let's buy a new one" and he would say, "let's not". He loathed the newer water heaters. He may have had a point. on one of the units, the water heater never had a problem the entire time I owned the property, which was from ~1989-2015.
I know that one of my plumber's big issues, for CA at least, was that the newer water heaters had some kind of required energy efficiency / pollution control crap on them that always failed.