Both options have advantages:
Dry food: More economical, convenient, helps clean teeth, and may prevent obesity. It is less palatable and contains less moisture.
Canned food: More palatable, higher moisture content, and more nutrient-dense. It is more expensive, less convenient, and spoils faster.
Choose a high-quality food with real meat or fish as the first ingredient, appropriate for your puppy's age and size. Consult your veterinarian if unsure.