Yeah, keep in mind that the US built 50,000 M4s and the Soviets built 55,000 T-34s. Also, the M4 had a much higher crew survival rate when the tank was destroyed compared to the T-34 and Panzer IV due to having a roomier interior that was easier to move around in and each crew member having their own dedicated escape hatches.
That's actually one of the reasons why the US just kept producing more Shermans. The M4 was a good generalist tank: it could fight infantry, it could fight enemy fortifications, and it could fight most German tanks. With German armor being relatively rare compared to it, especially the big scary armor like the Panther and Tiger, the US army didn't want a bunch of specialized machines. This actually became a problem with M10, M18, and M36 tank destroyers that were pushed into serving as tanks to assault fortified locations: their open turrets and reduced armor made them very vulnerable to German infantry.