The dorans ring in actuality gives you more mana typically than flask if you farm well enough long enough. You certainly have a lot more hp sustain with flask though.
Usually ranged mages still prefer the ring for the superior mana regen. The flask is usually taken by melee champs to survive some matchups, or ranged champions with such weak early games they may just seek to farm. The thing is if you're a doran's ring mage with limited mana it WILL be hard to poke down the enemy flask user with limited mana pool (particularly ranged ones with good positioning...) as the flask potions start gives so much hp. You kinda just have to accept you'll likely just end up farming before first recall if you have limited mana pool and limited 100-0 potential.
The flask is often not as desirable as a d-ring mid game though... And in actuality if flask didn't exist massive potion buys are not that much less efficient. Can't nerf flask to the point it can't outperform regular potions...
Flask is actually secret op on ranged AD solo laners though as they can dish out a constant barrage of free harass. Trading hp is like a resource like this...

What if flask had different values for ranged champions compared to melee ones. A straight nerf, or maybe a change to more mana emphasis. I'm personally fine with the way it is tho ;p