Depends on when Hiruzen reached his prime. The Hiruzen who became Hokage didn't have all the jutsu techniques and knowledge preskip Hiruzen/nine tails attack Hiruzen had, but we know he had physical strength, more chakra and stamina than preskip Hiruzen. I'd wager though that prime Hiruzen was nine tails attack Hiruzen because was around the same age as the sannins with more jutsu knowledge
Edo tensei removes the stamina issue, but his physical strength is still lower and ultimately revived a bit weaker than alive. However he is the closest being to his primeself due to this since he can use his ninjutsu techniques without worrying too much about clones and overall chakra usage.
As for Itachi, it's also a bit similar situation in that his primeself was never really known in the manga. We know he had health issues at some point, but we don't know when he got it, and judging by Sasuke's statement about Susanoo destroying cells in the kage summit, wondering how it could have been for Itachi, it might be due to MS overusage that Itachi's health declined and Itachi had MS since 13 if i recall correctly, so his primeself could be anywhere between 13 and 18/19 when he went to Konoha preskip. What is for sure is he seemed in far better shape when he faced Kakashi than when he faced Sasuke in part2, so he was probably the closest to his prime at that point
But even prime Itachi had chakra issues, i think he had a very low stat in this department in the databook, and thus ultimately tiring him after multiple MS usage. In part2, at 30% of chakra, he couldn't even use MS, but Edo removed those issues once again, with Kabuto's edo tensei being even more perfected than Orochimaru's, and thus allowing Itachi to use his MS techniques without worrying too much about chakra, since it was continuously refilling after a certain point, and thus making that version even better than prime Itachi imo
Another factor to consider is sealing techniques. Edo Hiruzen has none outside of reaper death seal, which means the best he can manage is a draw and eventhen, since he doesn't control reaper as well as Minato, his version is close range, with him needing to hold Itachi in close range to perform it, when Itachi has better utilities with totsuka's range application, making it likely then for Edo Itachi to win
In their alive version, i think prime Hiruzen will win though due to higher chakra reserves allowing him to use his clones and stronger ninjutsus to overcome and outlast Itachi. By portrayal, both were portrayed above Orochimaru, but Hiruzen had more build-up around strongest of the five kages in part1, more talent than Tobirama(according to databook) allowing me to believe he'd win. I think Prime Hiruzen's portrayal was only below Hashirama's and Minato's, although lacking more in feats