Yep, it's total attack versus total defense.
Total means buildings, allies, permanent items, and pots. Then based on the comparison there will be a percentage range of chance of winning. From tests, I found the maximum was actually about 95% chance of winning; I have high atk bonus and even when hitting a pure osf I lose at least 1ce per round.