Well, player or AI doesn't know which unit do you/it have/has.After encounter one of units will be known for other side, but you cannot be 100% sure that it will be the same in the next turn.