Solar is less indirect than they. It’s like if we made our own fusion reactor and rather than using it to boil water close by to generate steam, we put the water a few miles out.
And even that, the heavy elements of the earth (basically anything heavier than Helium) only exist because of the sun's predecessor, making the heat from the core also just recycling from fusion.