I answered
respond direct and honestly that you don't want to do this, not worrying about being nice
This was a hard question because it would depend on the situation and whether I would eventually end up doing the thing. But assuming I didn't intend to do the thing, it would be better for the friend to know upfront so they can make other plans.