Solar PV is converting solar irradiance into electricity: the energy source comes from the sun. A fuel cell cell just converts hydrogen and oxygen into electricity: Hydrogen has to be provided and usually energy is necessary to produce it - so a fuel cell is not a source of energy.