Bus rapid transit exists, is much cheaper than rail, solves nearly all these problems while making the infrastructure far cheaper (due to ability to climb grade, etc). They’re often lighter than trains, they can be much more granular (so you don’t need an entire train at low rider volumes), so the efficiency can be closer to a wash than people would like. Especially with trolley buses or battery electric buses (or BEST, the combination ones).