Not if they are contractors. That's the point the parent commenter was making. All the reasons you list make it so they need to do so, instead of "hiring" them directly.
It doesn’t matter if the foreign workers are contractors or employees. The expense is considered R&D and must be amortized over 15 years. I’ve dealt with this personally since 2023 for my company working with a legion of tax consultants. There’s no loophole here, I assure you.