Question about how winning conditions are calculated in Bg Blitz or Bgs in general.

I've had this a couple times where it was like 1:1 in a Flag carry map and in the end one Team wins,but how does the system calculate this internally?

https://preview.redd.it/hypqmamlyake1.png?width=1072&format=png&auto=webp&s=a0483ef1bcc3b8fc392dbc32b244a29b0443a696

In this example, yes they had more flag returns than we had, but i had another game lost where it was completely even.
Does anybody know?