There are so many moving parts that it is difficult to predict what your individual results will be. I'll say the obvious only because I haven't seen it explicitly stated yet: try the experiment yourself and see what happens under the conditions you care about.
In my experience with iron sights, shorter-barrelled guns tend to offer the best potential accuracy, and longer-barrelled guns tend to offer better practical accuracy. This conclusion is over many tests with similar guns setup with similar sights (e.g. G26, 19, 17 and 34; M&P compact and M&P full size, all equipped with the same sights). When shooting these guns at 25 yards from a rest, I consistantly got the best groups from the smaller guns (G26 and M&P compact compared to G17/34 and M&P full size). When I take the guns off a rest and start shooting free hand under time pressure, I tend to get better groups from the larger guns.
There are too many factors in play to declare my results as the rule, or even for me to expect it to repeat with a different brand or sample of guns.