True, but the externalities for coal are huge, as are the hidden subsidies. A fair comparison would also include those:
https://www.pik-potsdam.de/members/edenh/publications-1/copy...
The important thing to note is that politicians are hopefully willing to act on this.