idempotency check when state=default

Hello,

I am dealing with the devices (network switches) that are idempotent through their API. The devices check whether a proposed config change would alter the current configured state, and if it wouldn’t, then no change is made. We have a custom ‘state=default’ option on the module if a user wants to return to default settings. If state=default in the Ansible module, is it OK to rely on the device for this idempotency check, or must the Ansible module keep track of what a default state looks like and compare the proposed changes to that?

Thanks!
Michael