One token at a time.
If it has detailed context of exactly what the entire app will need to do before writing any code, the first tokens will be more likely to build an architecture that works well in a language and framework that is suited for it.
If the initial context is thin on details, it will still pick an architecture, language, and framework but it may not be the best fit for the end goal. After those choices are made that just becomes more context, and it likely would never consider whether the language is now wrong and the entire codebase should be started fresh with a new language or framework.