If you're going to make that comparison, you need to compare apples-to-apples and include solar efficiency in the coal too. After all coal's energy originally came from the sun. Plants converted the sunlight into energy at an efficiency of about 1%. A miniscule fraction of that energy went into the plant growth, and then a miniscule fraction of that energy was captured when the plant was converted into coal.