The most accurate statement comparing cell membranes and cell walls is d: "Cell membranes function mostly as selectively permeable gatekeepers while cell walls function mainly as support systems."
Cell membranes control the entry and exit of substances in and out of the cell, allowing selective permeability. In contrast, cell walls provide structural support and protection, particularly in plant cells, fungi, and bacteria.