A subdialog within the same VXML document is cheap. A dynamically generated subdialog is an HTTP fetch + your server-side processing + parse and execution time on top of that.
If you need server-side processing, Javascript is no substitute. If you don't, then it depends on what the processing entails.
Why don't you try it and see?