A pea , although treated as a vegetable in cooking , is botanically a fruit ; the term is most commonly used to describe the small spherical seeds or the pods of the legume Pisum sativum . A pea is most commonly the small spherical seed or the seed-pod of the legume Pisum sativum .