The important machines from TSMC are made by other companies. Competitors can and will also make 5nm chips. TSMC definitely has a headstart and it requires a huge investment to realize a fab (machines, clean rooms) also a lot of integration work and many optimisations to become profitable.