Or a post object field
The only advantage of a link field is that you can link to other things besides posts, like archives and such.
If you really need to use a link field you could also try https://developer.wordpress.org/reference/functions/url_to_postid/