Microsoft states that Clarity is GDPR compliant as a data controller. For more information, see the Microsoft Privacy Statement.
You do need to inform your users that you are tracking their activities and ask for their agreement to use the cookie of Microsoft Clarity.