Getting engine swap is as risky
As most of engines available are from cars that had completed their life in Europe or Japan.
Get a very very good and honest mechanic
Else repairing engine from a good mechanic (as some PW had done in vitz) is also good choice,
it depends how much engine is damaged and what is condition of block and head.