also this solution should make it easier to upgrade stations. And a station must not be passenger or cargo station it can be a mix.
And if you need more tracks for passenger you should be able to reassign and change a cargo track to passenger track. And then build more cargo tracks at the side / edge of the station.
You need to be able to reassign the track so you don’t need to delete it and then build one of another type.
So maybe it should work like this that you build all the tracks you want and then you paint a flavour on them , passenger or cargo. And then the game knows where the train should stop.
This type of station also make you have to pick the track the train should stop at since that is simpler then having the game figure out where to stop if you were pointing at a station built this way by adding tracks and platforms,