defeat the purpose of
idiomDefinition of defeat the purpose of
: to make (something) pointless
It would defeat the purpose of having a nice car if you never got to drive it.