Slight difference between values of doc_count and count

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch version 2.6.0

I am trying to count the number of documents found per day between two dates. I notice a slight difference in the “doc_count” values returned by my aggregation and the hit (count) value visible in the GUI (Discover section) for the exact same query parameters. The GUI mentions it as 339,302 whereas the doc_count value from the date histogram aggregation is 335,036 for the same bucket size of 1 day. Could someone explain why is this the case ?

Relevant Logs or Screenshots: