Tesla never had unique technology, except maybe the 'software defined car' but that wasn't the big sellers on its own.
Tesla integrated other peoples cells into a nice system, but they were never uniquely good at that. They were successful because they invested a huge amount into scaling battery manufacture faster then anybody in the beginning. Something that everybody could replicate.
SpaceX on the other hand has a true technical advantage. But its also a much smaller market.