Use "defeat the purpose" in a sentence

1. If I didn't wear the suit, it would defeat the purpose.

2. 18 This also eliminates the need to scroll to find data, which would defeat the purpose of having a command centre.

3. I went to a bookstore and asked the saleswoman, 'Where's the self- help section?' She said if she told me, it would defeat the purpose. Steven Wright