A Ghanaian electricity producer has denied owing a Swiss commodities company $17 million for a shipment of unpaid propane, telling a court that it had no choice but to abandon the deal when the country's regulator forced it to buy supplies only from licensed providers.