ST_SymDifference
Overlay Functions
ST_SymDifference (Python)
Calculate the symmetric difference of two geometries (the regions that are only in one of them).
Calculate the symmetric difference of two geometries (the regions that are only in one of them).
SQL reference:

