You are considering purposefully removing a required safety feature from your electrical system connecting a component?
At best, in the event of an electrical fire, your property insurance will deny coverage. (even if not the actual cause, just as an excuse). At worst, you'll kill someone by bypassing a safety feature, and will be held civilly and criminally responsible for any damage to property and persons.
If you have a 2 pin (C18) IEC inlet on a component, you could build a cord with a fitting 3 prong IEC plug (C13) with the ground left unconnected, iff you fill the IEC plug's safety ground opening with epoxy, making it a C17 plug, so it wont fit in a 3 blade IEC inlet.