As far as the Germans loosing the productivity arms race, that was inevidable. Germany focused in on "High Quality, Low Out put" manufacturing technics throughout the war. Even if they had focused strictly on PzKw IV's they would not have been able to maintain the pace with the American Manufactures. Also as the war progressed, slave laborer's were sabotaging German industry from within, where as their American counter parts,(whom almost 50% were Women) were for the first time since the depression, earning more money than they could imagine. Production has better chance of growth if the workers are happy, something the Soviets were not able to achieve.
Any way the PzKw IV, "though it can be argued" was a better weapons system than the Sherman. Its survivablity did fall short against most Soviet tanks made after 1941. So enter the Tiger I as a stop-gap weapon, until Germany was able to produce a more effective tank,(ie. the Panther)