Did a little digging and could not find anything to say you MUST match batteries with one exception.
Match the same style, as in Gel with Gel, AGM with AGM, Wet with Wet.. (Which makes sense to me,,,)
Here is a cut and paste...
Stay with one battery chemistry (flooded, gel or AGM). Each battery type requires specific charging voltages and currents. Mixing battery types can result in under- or over-charging, which may mean replacing all batteries on board at the same time.
Never mix old batteries with new ones in the same bank. Old batteries tend to pull down the new ones to their deteriorated level.
Regulate charge voltages based on battery temperature and acceptance (either manually or with smart-sensing devices) to maximize battery life and reduce charge time. Ensure that your charging system is capable of delivering sufficient amperage to charge the battery banks efficiently.
Keep batteries clean, cool and dry.
Check terminal connectors regularly to avoid loss of conductivity.
Check fluid levels and add distilled water to flooded lead acid batteries when needed. Keep batteries charged; leaving them in a discharged state for any length of time will damage them and lower their capacity; it also reduces lifetime.
Clean corrosion with a paste of baking soda and water.