What elements are primarily forged by stars comparable to or slightly larger than the Sun before they become white dwarfs?

Answer

Carbon and oxygen

Lower-mass stars, like the Sun, complete the helium-burning stage (triple-alpha process), creating carbon and oxygen, but they lack the mass to fuse these further.

What elements are primarily forged by stars comparable to or slightly larger than the Sun before they become white dwarfs?
sizeElementstarastrophysicsFusion