mAKe a unit possible to enter a wall is an option, the armor could be selected as stone, and you should make piercing attacks less damaging for stone then, which is obviously more realistic, walking on a wall will be difficult. Maybe giving AI a standard pattern for making their castles like stronghold has would be an option to make them useful.
sounds good?