You can test this by bringing an official apple charger and cable to Best Buy. When I bought mine, I was sure it was a hardware issue until I demonstrated it on every floor model laptop by plugging in an official apple charger and my pixel 3, crashing each one instantly.
HP said that they would release a firmware update that fixed this but I don't know if it's out yet. I returned my spectre and bought a razer - this kind of bug is 100% inexcusable.
TLDR: If you purchase one of these, make sure to do it from a place that doesn't do restocking fees, apply the most recent BIOS update, and then test the laptop with multiple USB-C devices (and cables). A shame - I really liked the hardware.