The math would already change quite a bit if airplanes had to play on a level playing field. For example, in the EU there are no taxes on aviation fuel. For a country like Germany that's the equivalent of a yearly 7 billion euro subsidy.
Add fuel taxes and CO2 surcharges, and same-continent rail travel suddenly becomes a lot more attractive!