How can I understand if two lithium ion battery types are exchangable or not?
Don't worry about the replacement battery.
The higher mAh battery will take longer to charge and have a longer discharge time.
The datasheet for the battery cell will say if it has protection circuit.