That does nothing about the fact that flying is destroying our environment and emits greenhouse gas emissions 2 orders of magnitude over the same trip by train.
If you ammortize the environmental impact of building the rail network over all the rail trips, it might swing the other way. Especially if someone figures out carbon neutral air travel in the next decade.