Lets all get something straight here..
Virat is the best batsman currently in the world.. no doubts about that..but still he needs to step up big outside Asia and against quality bowlers..
Virat started making it big when India as a team started dominating world cricket and currently they are the most formidable side in world cricket.
Virat is playing at a stage where quality bowlers can be counted on fingers.
Virat is playing at a stage where batting pitches are the most used in matches these days.
Virat is playing at a stage where T20 has evolved completely making cricket more of a batting and less bowling.
Virat is playing at a stage where grounds along with pitches are favoured mostly for batting with falt clean pitches, shorter boundaries and less grass.
Virat is playing at a stage where the quality of bowlers cant even be compared or match 25% of the bowlers sachin faced.
Now coming to Sachin
Sachin played in an era where India where never a top2 or 3 side in world cricket.
Sachin was for most part the lone warrior in the team which multiplied pressure on him every time.
Sachin played at a stage when india even were down 7th ranked in world cricket.
Sachin played at a stage where cricket was balanced with bowlers being equal to batsmen
Sachin played when the boundaries were longer and grass was more.
Sachin never at peak had T20 vibes or influence
Sachin never played majority of his career on flat tracks.
Sachin played at a stage when 220-230 was a winning score
Sachin didnt get so much advantage of power play and new cricketing rules as current players do.
Sachin played at a stage when Indian team was mostly inferior to teams like Australia,South Africa,Newzeland and even Srilanka.
Sachin played at a stage when Austraia were thoroughly dominating world cricket alog with South Africa for some part.
and India were mere incompetents to those mighty teams.
Look at the scenario of the same teams now???
Quality players and approach are the difference between these two stages of these teams.
Just count on the number of quality fiery bowlers playing now and the era of sachin?
So there is the answer...and yes if both were playing in the same era,kohli would have ended up at max 30 centuries in his carren at sachins era and sachin would have ended up around 150+ centuries in kohlis era.
so thers my answer.