compare geometries which are not comparable with ST_Equals using their binary representation