Priority between filename and NFO

If the media file name is well-formed for identify the movie, and also an NFO file is presented with uniqueid tag, which one is used to get the metadata?

External artwork and and metadata files added are always recognized and used by Infuse as long as the naming structures are followed per the users guide.