I suggest you look into the data behind soy production and usage: most of the soy that is produced in the world is fed to animals which people then eat (which is highly wasteful compared to directly eating the soy) and so if you care about the environment, eating soy products is much, much better than eating animal-based products.
https://ourworldindata.org/soy
Livestock farming is terrible for the environment and has a huge carbon footprint, partly due to the extreme amount of land it uses.