The source mentions roasted corn and sweet potato in accounts of historical coffee substitutes. Such stories illustrate a practical distinction: a beverage made from another roasted plant material is not the same crop as coffee, even when it is served hot in the same kind of cup.
A modern product can be a substitute alone or a mixture that still includes coffee. Read the ingredients and preparation directions to identify which one is being offered. The name on a package may emphasize the intended use rather than give a complete account of its composition. A blend containing coffee should not be assumed to have the same properties as a product made entirely from another ingredient.
Choose a clearly labeled beverage product rather than treating an old anecdote as a complete roasting or cooking recipe. Compare its flavor, body and preparation on their own terms. A substitute does not have to reproduce every feature of coffee to be enjoyable, but accurate naming helps prevent a preference for a familiar ritual from becoming confusion about what is actually in the cup.
The conversation
A good question can make a better brew.