Depends whether one's goal is fame or credibility.
Have we lost more great art from great artists refusing to compromise and never getting published, or from potentially great artists who compromised and had to spend their entire careers bowing to the will of the studio?
Doing a sh*tty movie is a different thing than doing an infomercial. The finished product of the movie might not be the script you wrote (or read). Maybe Mark Wahlberg read an amazing first draft of "The Happening", and by the time he realized it was gonna suck he had already signed the contract.
But once someone does the infomercial, it's over. Their career might make a comeback, but they are (as Bill Hicks put it) off the artistic roll call forever.