You could achieve the necessary outcome without using personal data.

It's not lawful to process the personal data if the necessary outcome could be achieved without using personal data.