Both prep any surface properly before a coat of color. Learn which sealer or primer works best on your interior or exterior projects.
Oil and water do not mix so the solvent base in the oil paint forms a barrier that won't let the latex or acrylic paint bond to it ... make it easier for the new primer and paint to stick to ...