Perhaps but there was another choice here - not make a phone and report Qualcomm to the appropriate authorities. It wouldn't have made Apple as much money but increasingly this seems to be the problem with all companies, prioritising making money over other concerns. Apple maybe better behaved than some (and worse the others) but that doesn't make it right.
At the end of the day capitalism is an excellent mechanism for distributing limited resources and encouraging innovation but without a moral foundation, we're all just animals, it's just we're hunting "dollar bills" instead of other, wild-er animals.
At the time, the iPhone was a product Apple had staked their entire future on. Not selling it may well have ruined the company, when you consider how much of Apple's success today is predicated on the iPhone.
I am not sure it’s reasonable to expect companies to do what you suggested. I admit it would be awesome if they did though.