The cause of this problem is simple to identify:
The friendly AI doesn't give two [censored] about the Primary Objective. They spread out all over the Primary and Secondary Objective(s) whilst the enemy AI just gathers up around the Primary Objective and owns the [censored] out of the player due to superiour numbers.
So not only does the defenders have the advantage of a fortified position, but also numbers and generally higher IQ than the attackers.