Think of S-400 as one system that consists of two sub-systems. The first sub-system is equivalent to Patriot. The second sub-system is equivalent to THAAD. So, you need to combine Patriot and THAAD to compete with S-400. In the trial, US only presented Patriot not THAAD. This is why S-400 won the tender.
First of all, both Patriot and THAAD are any missile defence, SAM capability bring secondary. S400 is first a SAM & then BMD. SM6 of us is the only SAM which is could offer that could complete with s400
Second, India did not buy a weapon but the technology, at least some of the SAM technology. It is rumoured that S400 missile technology will be used by India to make its own SAM & BMD upgrades. This can't be intestines from USA.
So, when did USA have any chance of winning the bid?
Now, let us come back to multi-role fighter aircraft's original tender. This was issued when Shri AB Vajpayee administration was in its last leg. Then, Shri MM Singh administration came into power. They sat on it till they were in their last leg; towards the end of their tenure, they started making some progress with France on negotiation because Indian Air Force seriously needed replacement for its aging fighters. Then Shri N Modi administration came into power. Around this time, Obama administration in the US was on its last leg and tension between US and Russia were very high and US was very serious about developing some sort of defense ties with India. Even though Indian Air Force had selected/favored Rafale, the US government under Obama brokered a deal under which Lockheed Martin would move its F-16 factory to India. India then dropped the idea of Rafale and accepted this deal as it would have created jobs in India. Then, Trump administration came to the power and scrapped the F-16/21 deal. This resulted in India signing contract with France on Rafale. French threw in some extra goodies to seal the deal.
I have repeatedly told you that Rafale will be made in India with Kaveri and uttam. USA only allowed assembly of f16 in India which was useless. Even if f35 was offered, without an offer to be made in India fully, it would have failed
Like P-8I, C-17, Apache, MH-60? Most of the Israeli stuff India is buying has US origin content, if they want to make things an issue they can destroy two supply chains. That is why I always advocate the French, it is the only independent choice.
India does not but important items from USA. The c130, p8, c17 etc are just transport planes modified. India uses its own sensors and weapons ok these systems. So, here too, usa just sells its Boeing planes and nothing more.
About Israeli weapons, India tries to get know why from Israelis and then make it in India. India, for example learnt Israeli greenpine radar and made it indigenously in BEL using that knowledge. So, even here, India knows USA's unreliability and doesn't import usa made parts in important system