the Stug 3 is a panzer 3 with just a turret removed. The intended roll for the stug always was infantary support, the reason why the stug was built, was becuse it was significantly cheaper than a panzer 3. Also later in war it got a more capable gun, that also made it suitable for anti armor...