I was mistaken. Lemmy only detected automatically the link when title, body and external reference where the same. It did not do it when the title and body was the same on posts without external references.
First case
https://jlai.lu/post/13228928
https://jlai.lu/post/13228821
Second case
https://jlai.lu/post/13228938
https://jlai.lu/post/13228935
Maybe that’s how Lemmy detects crossposting but there is a visual mark of the crosspost in the interface and I have access to a link to the post in the other community that opens in my instance rather than in another instance. That is something very practical that make Lemmy crossposts more than posts with similar content. And that is something I didn’t find in Piefed.