--no-duplicates should prevent identical duplicate submissions for the same leetcode question from being exported.
Duplicate submissions can be identified by computing the hash of the submission code submission.code and comparing it to that of previously exported submissions.
MD5 hash should be suitable for this purpose because it's fast to compute.