For identical edge pedestal conditions in plasmas with gas puff and with pellet injection, edge localized mode (ELM) mitigation during fully pellet-controlled ELMy H-modes has been demonstrated. When the ELM frequency is set to the pellet frequency, the ELM energy losses are significantly reduced at fixed pedestal collisionality, while pellets only weakly enhance the ELM loss power. The ELM affected region of the density profile is reduced by pellet injection, while the temperature perturbation profile does not change significantly. For constant source particle flux into the plasma edge at the same pedestal parameters, the reduction in convective losses per ELM during pellet-induced ELMs is balanced by increased ELM frequency and pellet fuelling of the pedestal region.