A fighter with bomb as it's Weapon Mastery/Legend choice.
https://pathbuilder2e.com/launch.html?build=1626336
While being a fighter results in significant advantages compared to an alchemist(greatest of all being far greater proficiency), aswell as having all these bombs inherently comes with great versatility. This is far from an optimized build, that much I see despite never researching Pathfinder optimization. Tough I am curious if this ever becomes even viable after Weapon Mastery.
Level 1: Just a fighter at this level, tough Alchemical Schoolar does automatically give it a formula every level. This means it can get every common bomb automatically.
Level 2: Alchemist Dedication alows it to make 4 bombs a day. Just an option at this point.
Level 4: Quick Bomber alows the bombs to be used immediately. Effectively removing the need to "reload" the throws.
Level 5: Weapon Mastery. Now bombs are the only weapons that have a higher proficiency than most martials(tough not Alchemists). Such the main advantage of the class is locked into a limited resource, of only 4 strikes at this level.
Level 6: Luckily next level it gets Advanced Alchemy. So now it has 8 strikes per day, 4 of which can be any bomb with a known formula.
Level 8: a familiar, which will have Extra Alchemy and Extra Vial. Effectively having 10 bombs, one vial that can be reloaded before the second combat if one occurs.
Level 9: Combat Versatility alows it to get Mobile Shot Stance, making close combat less concerning.
Level 10: while it would appear most reasonable to take Volumous Vials, Improvise Admixture gives one versatile vial on a failure, two on success and three on critical success. It takes an action, but if there will be more than one combat it is a great way to resupply.
Level 12: Alchemical Power just to ensure bombs with more interesting effects become more effective, thus ensuring it remains versatile.
Level 14: While more bombs is needed, potentially making your target off-guard every turn is to good. That's one of four things Debilitating Bombs can do.
Level 16-18: Volumous Vials, 11-13 bombs increase to 13-15.
Level 19: Proficiency is no longer locked into bombs. Abandoning the build and going in a completely different direction becomes an option. Otherwise a secondary weapon is more useful now.
Level 20: The only capstone feat that seemed applicable was Ultimate Flexibility indirectly. However there was no doubt Expanded Splash would help, there are cases it should not be used, but just about garanteed extra damage to every throw and greater splash area is a good upgrade.