The aggregate safety of appliances bought through brick-and-mortar vs random imports is that failures are more readily tracked by the CPSC and patterns of failures will result in recalls.
If you're one of a small group of people that buys a dehumidifier from a brand that's active for 3 months on amazon; chances are that brand isn't going to be included in the recall notices when the samey design sold with persistent brands at major retailers is determined to be unsafe.
On the other hand, who's got a dehumidifier built in 2011-2014 that still works? I'm on my second one since 2019, and while the dehumidification is still working, the pump seems to be on its way out. On the first one, the compressor stopped spooling up not long after the warranty period ended.