Using discourse as one part of a larger rails app?

Hmmm, I would be less pessimistic. You could also say that this could be a very large plugin.

The Custom Wizard plugin is so big It’s almost a separate app (especially on the front end).

There’s a lot of useful generic stuff written into Discourse you can reuse, eg User accounts framework and functionality, the deployment pipeline etc etc.

Also you can bend a lot of use cases around Discourse on the front end. Topics are your pages etc

The devil is in the detail here I think.

Just my 10 cents.