TBH, I have no idea how a rail compares to a canal in terms of terrain pressure and building viability. Without further information, it's a promising alternative that is very obviously limited by the (area) density of those ships, but obviously a major investment. Somehow, the ship is able to sustain its weight, so it's not an absurd idea, but they can just barely sustain it, so it's only a just barely not absurd of an idea.
One coupd use starship so, sub-orbital or even orbital would be so much faster! /s
https://en.wikipedia.org/wiki/List_of_largest_machines
The ships look like they're over an order of magnitude heavier than anything on land.
By my calculation, "The Captain" is just under 5 tons per square meter. Contrast that to the neopanamax, almost 6.5 tons per square meter (some uncertainty here -- I'm going by DWT which apparently doesn't contain the ship itself). So yeah, it's certainly heavier, but the areal density isn't an order of magnitude greater.
Serious question, surely it's expensive to unload but so is waiting for the canal. For some loads it seems like it'd make sense to bridge the oceans using rail.
This does mean that you would like to work with the same shipping line at both ends, to address the matching of ship capacities.