Your beard trimmer is likely missing the 5.1k resistors to GND on the CC pins, which enables the USB-C charger to output 5V. I had several devices (mostly flashlights with integrated battery chargers) that would only charge using A-C cables. After adding the resistors, C-C cables also work.