The device to prevent inbreeding is self-incompatibility. This is a genetic mechanism and prevents self-pollen (from the same flower or other flowers of the same plant) from fertilizing the ovules by inhibiting pollen germination or pollen tube growth in the pistil.