It’s not an either/or situation. You have a bunch of tools with pros and cons and you have to use the proper tool where each one is most appropriate.
The best transportation systems are a blend of transportation types. Use rail where the benefits are worth the cost and buses where they are not. There also many incremental options in between.