"Counting the losers" is part of R&D. Many companies invest in R&D, having failures is normal. According to Investopia[0], pharma companies float around the top of R&D spending. They indicate the semiconductor industry gets away with charging customers with more R&D spending. (Note, Investopedia doesn't cite any sources, so take it with a grain of salt.)
[0] https://www.investopedia.com/ask/answers/060115/how-much-dru...