Lara didn't do as well as Sachin though. Not in terms of consistency, not in terms of all-round record in different countries or different opposition.
I watched both Lara and Sachin from the mid-90 onwards. While Lara was unequaled in playing spin, he had his issues against high-quality pace. This was clear to me after watching him struggle against Donald and the 2Ws around 97/98 (he never scored a century against them), and even later in his career against Bond. McGrath also ruthlessly owned Lara in the mid-90s in a way that I have never seen a bowler dominate Tendulkar, though Lara later achieved more par. He was more vulnerable than Tendulkar in the early stages of his innings and rode his luck, clearly uncomfortable against short-pitched stuff at times, lost control of his hooks often and prone to more casual wafts outside off. However, once set, there wasn't a batsman more in the zone than Lara. Tendulkar had his period when he struggled, but it was more due to his tennis elbow than technical difficulties, which he was constantly honing and refining. The only possible flaw I could think in his game was occasionally being too rooted in his crease, but this was relatively minor.
Now, Lara more than compensated for these shortcomings with awesome achievements like the 99 Australia series, taking the world record twice and scoring the most double tons after Bradman, which made him special and along with Tendulkar, the best of the era. But to me Tendulkar's entire career is an almost unassailable achievement.