There are things like this: https://www.adafruit.com/product/5501 haven't used it, trying to find one for my mini pc, mostly so I can use a usb c power bank as a tiny DC ups.
The description explains (in bold, multiple times) that it has the awful behavior I am looking to avoid.
The description explains (in bold, multiple times) that it has the awful behavior I am looking to avoid.