You just wrote the magic words. A few years ago my LAST HP (literally) would not boot when my smart phone was plugged in. It would also have mysterious hangs when storage devices were plugged in. THIS DID NOT HAPPEN ON THE DOZEN PLUS OTHER MACHINES IN THE OFFICE.
To make this simple for HP I took it down to one issue. The laptop would not boot when the iPhone was plugged in.
HP failed so badly that it was my last HP and I no longer recommend their products due to them taking a walk on the warranty.
The bug is in the BIOS which HP said "We buy the BIOS" and more. Since HP doesn't have control over that, they could never fix it. Now that's bad enough but at just weeks into owning this model it went to their service center and came back. After their service it would lock up solid (no phone or any changes to the system) in 5 minutes.
Calls to HP ended with "We've done all we could." At 9 months after over 6 months of calls and surveys, I called it quits. HP's non-commitment to warranty issues means they are not a company we can buy from.
Your choice to see if HP can resolve this for you but if I was to do over, I'd go for any other model.