Transparency is the first question
If the image has transparent edges, the export format must preserve alpha or the result will need a background color. JPG cannot do that; PNG and WebP can, depending on browser and destination support.
For logos, UI graphics and cutout products, inspect the edge on both light and dark backgrounds. A file can pass a size target and still fail visually if the alpha edge looks dirty.