I think the set of purposes you're considering is too limited. If you want an accurate comparison then a pie graph might always be a bad idea. But if the truth doesn't make you look good then the fact that a pie graph is bad at giving an accurate impression of the data actually is your purpose, and the pie chart might be the best graph for the job.