A molecule that can select one type of molecule to bind to it rather than many other types. There are many examples of this in biochemistry and molecular biology, as in the lock-and-key mechanism associated with enzymes; other examples have been created artificially.