The AI appears to have unfair advantages with regard to siege equipment. I've had my rams destroyed by a simple wooden wall before while my stone walls with 2 units of archers using flame often doesn't burn down their ram.

My only guaranteed ram killing solution appears to be using ballista towers where the blastwave from the shots inevitably wreck it.