Dozens of startup founders, investors, and advisers said Amazon met with or invested in their companies, only to later build its own products that directly competed with the smaller company.