You'll have a hard time finding one because such charger IC would also need to have a built in step-up voltage regulator to boost your 5v to the voltage required to charge the batteries.
The charger needs at least 4.2v x 2 = 8.4v to charge the two batteries in series.
Probably the easiest would be to have a step-up regulator in front of your battery charger IC.
For example MCP73844 of MCP73842 can do 2 cell charging but needs input voltage between 8.7v and 12v
Here's the xxx4 version :
https://www.digikey.com/en/products/detail/microchip-technology/MCP73844T-840I-MS/593753Here's the xxx2 version (they make them in 2 versions, one that does 8.2v max battery voltage, one with 8.4v set, this one is 8.2v version) :
https://www.digikey.com/en/products/detail/microchip-technology/MCP73842-820I-UN/593742MCP73842 just has an extra 2 pins for a temperature sensor otherwise is pin compatible with the x4 version so the same 10pin footprint could have both.
So an option would be to boost 5v to around 9.2..9.5v (8.7v plus some margin to account for ripple and voltage drops on traces and temperature variations) and send that to the charger IC.
Another example would be MP2615 :
https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/datasheet/lang/en/sku/MP2615GQ-Z/document_id/1423It has a built in step-down regulator to produce the voltage sent to batteries unlike the above Microchip IC which uses a linear regulator, so it can handle a much wider input voltage, it works from 8.75v all the way to 18v
Another option you may have as a work around to adding your own step-up regulator would be to implement charging only with QuickCharge compatible chargers and add an IC that signals the charger to switch to 9v or 12v when you want to charge.
You can also do it without an IC by setting some voltages on the data lines to some specific voltages (ex for 9v you need to have d+ in 0.325v...2v range and d- disconnected or tied to ground (below 0.325v) for at least 1.25v then you need to connect d- to that voltage between 0.325v ... 2v, that will signal the charger that you support QuickCharge 2.0 and more precisely the 9v level. For 12v, D+ must go above 2v when D- goes up.