Battery capacity, i.e. the amount of energy that a battery stores, is measured in Watt-hours (or Joules), not (milli)Ampere-hours. Without knowing the voltages, comparing two batteries based on their mAh rating is meaningless.