Any of two or more functionally similar proteins or RNA molecules that share a similar structure and originate from the same gene or a closely related gene family.