IANAL but having dealt with GDPR lawyers in a past career, GDPR allows you to anonymize user data as in, if there is no link between the user and the data, that satisfies a right to erasure request. That is not what is happening here but it is not as if reddit has no way to keep deleted comments and still be GDPR compliant.