For years I've been puzzling over the iCloud mail sync problem. The issue is that the mail app's badge count on iOS or macOS devices won't clear when you read an email on either device until you open the mail app. While comparing it with Gmail and its app, Gmail just did the job pretty well.
It's not a big issue, but it's just annoying me all the while.