Technology Competition and International Cooperation: Friends or Foes?