This is false.
She completed a master's in computer science and had built machine learning systems in her studies and internships in the late 90s. She was in the first 20 employees at Google and started out as an engineer, building the first version of what would become Adwords.
Then she went into product management and engineering management. Perhaps she wasn't a good enough engineer; I don't know or care really. She was hired for her engineering talent, made a solid contribution as an engineer, then made an even bigger contribution as a product manager then as an executive - all for one of the most successful and internally-competitive companies of our generation.
You don't achieve that by accident or by dating the boss.
Your comment is pure armchair quarterbacking. People who have actually built or managed hugely successful companies don't make those kinds of dismissals.