Both protect genetic information for the structures.
Explanation:
The capsid is defined as the polyhedral structure which is made up of a different protein shell which is known as capsomers, and that helps to surround the viral genome (DNA or RNA). The important function of the capsid is, it protects the nucleic acid by the digestion of enzymes.
Every nucleus is surrounded by a nuclear membrane. The nuclear membrane also protects the genetic material (DNA) from the substances which are present in the cytoplasm of the cell and keeps DNA inside the nucleus.