that td04 would need a tune and maybe bent/new oil and coolant lines but other than that it’s a direct swap in.
You might be better off finding a used vf45, they usually go for more like 5-600 so way more reasonable.
The key is to find out why the original failed before chucking a different one on, so many people just change the turbo with these cars then complain the new one died after a few hundred/thousand km’s as they never fixed the original problem