In supporting their Indian allies, the European corporations were actually fighting proxy wars against one another. The Portuguese lost out early, the Dutch were eliminated next (from India, anyway—they remained dominant in Southeast Asia) and the contest for India finally came down to the British versus the French.
Lots here, but I’m starting to understand why the British and French hate each other so much—deep down.