...if Eli Whitney [had] decided to keep the cotton gin to himself...
How on earth would that have been feasible? I mean, it would be somewhat realistic to imagine him not having the will to invent it in the first place. How on earth can one keep secret the design of a mechanical device that one sells to the public? Has any attempt to do so ever been successful?