Yes—plants have both somatic cells and gametes, but the way they produce and deploy gametes differs sharply from animals, and two distinctions (somatic vs. germline, and gamete vs. gametophyte) cause most of the confusion.

The direct answer in one pass

In plants, somatic cells are the ordinary, non-reproductive cells that make up roots, stems, leaves, and most of the plant body; they are typically diploid (in the sporophyte generation) and divide by mitosis. Gametes are the specialized reproductive cells that fuse during sexual reproduction—specifically the egg cell and sperm cells—and in land plants they are produced not directly from somatic tissue but by a multicellular, haploid gametophyte generation. So both categories exist, but they are not organized the way they are in animals, where a germline is set aside early and gametes are made directly by meiosis.

A further point of ambiguity: "gamete" is sometimes loosely used for any reproductive cell or even for a whole gametophyte. Strictly, the gamete is the single haploid cell (egg or sperm); the gametophyte is the plant that makes it. Keeping that apart resolves most of the apparent contradiction.

Somatic cells in plants: clear case

Somatic cells are the working cells of the plant body. In a flowering plant, the bulk of what you see—leaf epidermis, palisade and spongy mesophyll, root cortex, xylem vessels, phloem sieve elements, stem parenchyma—is somatic tissue belonging to the sporophyte (the diploid plant). These cells arise by mitosis from the zygote and are not destined to become gametes.

Two plant-specific wrinkles are worth naming:

Totipotency. Many plant somatic cells retain the ability to dedifferentiate and regenerate a whole plant. This is the basis of cuttings, tissue culture, and "clone from a leaf" propagation. An animal skin cell will not normally do this; a plant leaf cell often can. This does not mean the somatic cell is a gamete—it means plant somatic cells are developmentally flexible. Somatic mutation and chimera. Because plants keep growing from meristems, a somatic mutation can persist in a branch and produce variegated leaves or a sport. This is somatic in the strict sense—body tissue—not germline.

So somatic cells clearly exist in plants, and they are diploid in the sporophyte.

Gametes in plants: real but generated through the gametophyte

Land plants have a life cycle with alternation of generations: a diploid sporophyte and a haploid gametophyte. The gametophyte produces gametes by mitosis, not by meiosis—an important contrast with animals, where meiosis directly yields gametes.

In flowering plants (angiosperms), the visible plant is the sporophyte. The gametophytes are microscopic:

The female gametophyte is the embryo sac inside the ovule. It contains the egg cell (the female gamete), plus synergids, antipodal cells, and central cells with polar nuclei. The male gametophyte is the pollen grain, which grows a pollen tube and delivers two sperm cells (the male gametes). One fuses with the egg to form the zygote; the other fuses with the central cell in double fertilization, producing the triploid endosperm that nourishes the seed.

In gymnosperms such as pines, the female gametophyte is a multicellular tissue inside the ovule, and the male gametophyte is the pollen grain; sperm are delivered by a pollen tube (in most conifers) or are motile in some groups such as cycads and Ginkgo.

In bryophytes (mosses, liverworts, hornworts) and many ferns, the gametophyte is the conspicuous green plant—the leafy moss shoot or the small heart-shaped fern prothallus—and it bears the gametes. In mosses the sporophyte is the stalk-and-capsule that grows out of the gametophyte; in ferns the familiar frond plant is the sporophyte and the prothallus is the gametophyte. This is where the "which one is the plant?" confusion lives: the answer depends on the group.

Why the animal model misleads

In animals, the standard picture is:

A germline is set aside early in development (in mammals, the primordial germ cells). Germ cells undergo meiosis to make haploid gametes. Somatic cells are the rest of the body and do not make gametes.

Plants do not follow this template. There is no segregated germline set aside in the embryo the way animal primordial germ cells are; the gametes are produced by a separate haploid generation. The sporophyte's reproductive organs—the flower, the cone, the sporangium—are somatic tissue that produces spores by meiosis, not gametes. Those spores grow into gametophytes, and those make gametes by mitosis. So the plant "reproductive" structures you see are sporophytic and somatic in origin, while the actual gametes come from the tiny haploid generation.

That is the crux: plants have gametes, but they do not make them the way animals do, and the tissue that bears them is not a germline in the animal sense.

A concrete comparison

Feature Animals (typical) Plants (land plants)
Somatic cells Body cells, diploid, not gamete-producing Body cells of sporophyte, diploid, make up most of the plant
Germline Set aside early; distinct lineage No early segregated germline in the animal sense
Gamete production Meiosis of germ cells Mitosis within haploid gametophyte
Haploid stage Gametes only (brief) Multicellular gametophyte generation
Who makes gametes Germ cells Gametophyte (egg, sperm)
Spores Absent (in this sense) Produced by sporophyte via meiosis

The table is a simplification—some algae and non-land plants vary—but it captures the land-plant pattern that the question is really about.

Where the terminology gets slippery

Several usages cause trouble:

1: "Gamete" vs. "gametophyte." The gametophyte is the plant; the gamete is the cell. Saying "the moss gamete is the green plant" is wrong—the green moss shoot is the gametophyte, and it bears gametes. 2: "Reproductive cell." Pollen is often called a male reproductive cell, but strictly the pollen grain is the male gametophyte, and the sperm inside are the gametes. Similarly, the embryo sac is the female gametophyte, and the egg is the gamete. 3: "Germ cell" in plants. The term is sometimes applied to spore mother cells or to gametophyte cells, but it does not mean what it means in animals. Spore mother cells undergo meiosis to make spores, not gametes. 4: Somatic embryogenesis. This is a laboratory technique in which somatic cells are induced to form embryos. The name contains "embryo," but no gametes are involved—it is asexual, somatic-cell-derived development. It is not sexual reproduction and does not create gametes.

A few plant-specific examples to anchor the distinction

Maize. The tassel produces pollen (male gametophytes); the ear produces ovules with embryo sacs (female gametophytes). The plant body—stalk, leaves, roots—is sporophytic and somatic. The egg and sperm are gametes; the tassel and ear are somatic reproductive organs of the sporophyte. Moss. The leafy green shoot is the gametophyte; it bears archegonia (with eggs) and antheridia (with sperm). The stalk and capsule rising from it is the sporophyte, which is somatic in the sense that it is the diploid body—but it makes spores, not gametes. A moss "plant" you admire on a wall may be a gametophyte, which is the reverse of a flowering plant. Fern. The frond plant is the sporophyte; the small prothallus is the gametophyte bearing eggs and sperm. Both stages exist in the same life cycle, and only the gametophyte makes gametes.

Does "somatic" ever mean "not reproductive" in plants?

Not cleanly. In animals, "somatic" contrasts with "germline." In plants, the sporophyte is diploid somatic tissue, yet it bears the reproductive organs (flowers, cones, sporangia) and produces the spores that lead to gametes. So plant somatic tissue is not reproductively inert; it is the generation that produces spores. The cleaner contrast in plants is sporophyte vs. gametophyte and spore vs. gamete, not somatic vs. germline.

What is answerable and what is not

The question as posed is answerable at the level of general plant biology: both somatic cells and gametes exist in plants, with the caveats above. What is not specified is which plant group the questioner has in mind—angiosperm, gymnosperm, fern, moss, or alga—and the details of gamete delivery and gametophyte size differ among them. Also unstated is whether "gamete" is being used loosely for "reproductive cell" or "gametophyte"; if so, the answer changes in wording but not in substance. No specific species, textbook edition, or curriculum standard is given, so the answer stays at the general pattern rather than a named syllabus.

Bottom line

Somatic cells exist in plants as the diploid cells of the sporophyte body, and gametes exist as the haploid egg and sperm produced by the gametophyte. The plant does not make gametes directly from somatic cells by meiosis the way animals make gametes from germline cells; instead, meiosis in the sporophyte produces spores, spores grow into gametophytes, and gametophytes make gametes by mitosis. Once you separate sporophyte from gametophyte and spore from gamete, the animal-style question "do plants have somatic cells and gametes?" has a clear yes—just with a life cycle that rearranges the roles.