Probably much smarter is a general ML based app that allows user-defined, crowdsourced datasets. So for example, you download the app, and you pay to train a model using datasets that other people gathered. This could be used for things such as middle school science experiments (what is ML? what are the differences between cloud and rock types?) to things like magic mushroom identification. Since the models and datasets are user-curated, you're less exposed to liability, since you merely provide the platform
You need a better guidebook, and spend time with it. As with plants or any taxonomy there are rules and things to do that can classify things. It's more than just a photo of the thing that its about.
You need to spend time to learn, as you would learn a programming language, the rules for classification. It takes time and some effort to learn how to know whats good to eat, what makes you sick and what'll get you high. Essentially it's a form of biological inquiry so treat it like a science. Almost every mycologist uses a few books and tools to identify their haul.
edits: rule of thumb for eating: The range of edible but not eatable / awful mushrooms is huge. The range of deadly mushrooms is small. The range of edible and delicious mushrooms is small too. The bad and good ranges don't overlap on the whole. Thus, like with identifying garden plants you only need to learn a few kinds to be able to hunt the lovely edible mushrooms. But you do still need to learn and spend time in the learning.
Guidebooks are worse than useless, because you can never be sure that the slight differences between the mushroom you're looking at and your best guess in the guidebook are unimportant or a distinction that means the one you picked is fatal instead of edible.
There's no app for this. [EDIT: Ok, there are apps for this, but there's always room for improvement]
There should be. And this guy could earn a modest income helping some semi-talented ML and mobile engineers in Washington build one with his wealth of knowledge.
Take a picture of a mushroom with your phone, and it'll help you tell what you can expect from it.
Nothing helps with legal or medical problems like not having to worry about relatively tiny amounts of money.