Developer experience and the choice to keep complexity low make a much bigger difference. The things Rails solves for you are, these days, solved problems in all mature languages that are used in web development
(coming from close to a decade of Rails experience on my end)
Just to confirm: Are you saying that features offered by Rails - a web framework - can be replaced and solved just by switching to another programming language and use only the programming language?
(coming from close to a decade of Rails experience on my end)