All Teslas were built in Fremont, Califoria, prior to Giga factories in Shanghi etc.
I agree that fit and finish is better in my 2023 M3 LR, Shanghi, when compared to my 2019 M3 SR+, Freemont.
The Fremont one wasn't bad by any stretch but the 2023 is better. As it should be 3 years on.