Actually - I think initial contracts (a hundred ships or so) were awarded for both the B-17 and B-18, and after a year or two's service experience it was obvious which was fulfilling the real mission (which was not necessarily the original contract mission description...)
B-17s were so in demand that they were second-sourced (to Lockheed IIRC)