IIRC, they won't sell parts to a non-certified mechanic, and there's a lack of third-parties making the more complex parts. You're fine if you need a tire swap. You're not gonna have much fun if you have to replace the screen.
A Federal-level right to repair can't come soon enough.
But what can they legally do if you decide to use parts on the secondary market anyway? (... are they punishing consumers for this?)
You can buy (almost?) any part directly from Tesla as a plain Joe [1], but you may need a VIN for certain parts (mainly the actual computers?).
In the event you want to DIY a repair, Tesla publishes all their service manuals they use at their service centers (e.g. [2]) and you can can even use the exact same software their technicians use for the deeper repairs, albeit at a price that is expensive if you're a plain Joe, but for a repair shop it doesn't seem to be terribly expensive.
On the topic of 3rd party parts, there isn't quite as robust a marketplace.
[1] - https://epc.tesla.com/en-US/landingpage
[2] - https://service.tesla.com/docs/ModelY/ServiceManual/2025/en-...
[3] - https://service.tesla.com/en-US/diagnostic-software