Some validation/sanitization libs support gmail addresses and can treat them as one address.
firstname.lastname@example.org -> email@example.com
firstname.lastname@example.org -> email@example.com
For reference: npmjs.com/package/validator
You shouldn't do this for the simple fact that if a user has entered their email twice like this, then they're expecting them to behave like 2 separate addresses. It's just extra overhead on your platform.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.