Coal necessarily produces waste. It's an inviolable law of thermodynamics. Burning coal cannot produce enough energy to capture the waste products of burning coal.
Solar, on the other hand, can account for its own waste stream, even in energy terms, because the source of its energy comes from outside the system boundary.