Equals overloaded for DPU and TemplateConfiguration.