It’s no definite proof, it is just very unlikely that they can remember their former partner but can’t differentiate between sexes. They look all the same to us but not to them.
Someone else debunked my comment but they still more likely go to their old partner so they seem to remember them
So my Spanish teacher was wrong. I hope she didn’t make up the language, too