The default stride value is equal to the kernel_size. So, in general, yes there is a difference.
https://pytorch.org/docs/stable/nn.html#torch.nn.AvgPool2d 146
However, for global average pooling it probably doesnt make a difference because you’re averaging values over the entire input feature map to produce a single value.