By investing in publicly traded stock, you’re purchasing part ownership of the means of production and making profits off someone else’s labor. I don’t see how you can even justify owning small amounts of stocks when it contributes to such awful things on a massive scale.
Marx did it ... you are part of the system and rely on it for making a living. So no, its no more hypocritical than posting this from an iphone or whatever. Furthermore, unless you are actually owning millions in stocks I dont think it really matters.