Tesla had a strong market leading aspect. It was range. BYD have access to world class battery innovations which are of course, uncertain but the hope of solid state batteries with 1000km+ range and fast recharge is on the table.
Tesla committed to the all glass dashboard. BYD was more circumspect and can more easily walk back to a mechanical switch dash, respecting emerging world views on safety.
Brand loyalty is a thing. A lot of tesla owners are brand loyal but new potential owners have aspects of brand identity in Musk they can (and do) use to rationalise their choice for alternatives. There is also brand dislike. Perhaps American consumers have forgotten it, but some people wouldn't by Ford because of Henry Ford snr.
So I come back to: it's not a given. The future is uncertain. This might be the end of Tesla market dominance in the US but it isn't written. The brands owner has a huge pile of cash. He can afford to weather storms which would break other companies.
Tesla only exists today because it got huge subsidies from the government. It has competitors now and the subsidies were spread out before the GOP killed them.
They're way, way behind in SDC and Musk is pitching humanoid robots no one wants that they can't deliver.
Musk doesn't have piles of cash because almost all of his wealth is tied up in things he can't sell (like Tesla stock). He can borrow against it, but not forever.
I don't see any sliver of hope for them.