Elixir gives you the productivity for humans and machines alike without the performance costs. Plus you get 25+ years of Erlang battle testing as a foundation.
My opinion of Rails as a side observer: it allowed to cut coding time/effort/skill very significantly at the expense of performance. In the era when coding is dirt cheap thanks to LLMs and CPU and RAM are expensive, i don't see where the value is.