There is a decent writeup on wikipedia[1] on how difficult this would actually be to do ISRU on mars. The TL;DNR is 56,200 meters squared of thin film solar panels. Granted, solar power is roughly half as effective on mars as it is on earth, but still. For reference, an American Football field is 7,140 meters squared.
[1] https://en.wikipedia.org/wiki/SpaceX_Mars_program#Mars_prope...
The apparent purpose of this is pretty much a tech-demo for mars. In terms of minimizing environmental impact on earth it would pretty clearly be better just to send the solar energy to the grid and divert natural gas that would have gone to generating electricity to launching rockets.
Every rocket to Mars carries hydrocarbon that will never come back.
We're not discussing "massive deforestation" here. Germany's biofuel mandate does not affect rockets in Texas.