Sobers is among the top 6 best batters ever while I don't think Imran is a top 6 bowler, plus while it's true that bowlers in a vaccum are a little more valuable, there's no point to underselling the value of batsmen, bowlers need the Batsmen to set up games, Batsmen need the bowlers to finish the job, it's mutually reliant and one isn't necessarily far more valuable than the other, only a slight edge to the fast bowlers at best (spinners is another discussion). Imran also got injured and missed games much more, Imran played less than 70% of the games for Pakistan that he was eligible to play to Sobers playing more than 80% of the games West Indies could play, you'll find more 24 averaging bowlers (what Imran averages without Sri Lanka) than you'll find 58 averaging batters like Gary. Plus, Sobers averages 51 away from home with the bat which certainly beats Imran averaging 26 with the ball away from home.
Sobers was also defacto the best Batsmen of his era, and was discussed for the best ever alongside Hobbs and Bradman (with some crazy shouts to Pollock) while Imran wasn't held in that regard.
When Imran was an all rounder, he made 26 runs an inning and averaged 32, that isn't necessarily better than what Sobers managed on raw numbers. On top, he was a test class pacer who was often handed the new ball over full time bowlers, could bowl spin when required to give the pacers a rest, has match winning performances abroad with the ball in a sense Imran the Batsmen does not. The utlity of Sobers the bowler is higher than the utlity Imran the Batsmen brings in, I'll say they're certainly very close on secondary skill and there's no guaranteed winner like on primary skill, but I think it's fairly debateable.
Hutton is an inferior Cricketer to either, but is a better Batsmen than Gary and beats Imran on primary, and this might be a hot take, He was also a superior captain to either.