The statement that correctly compares atrocities committed by Nazi Germany and Imperial Japan during WWII is:
Both the Nazis and Japanese used racial superiority as a justification for the imprisonment and extermination of groups of people.
This statement captures a fundamental aspect of both regimes' ideologies, where racial superiority was a key justification for their actions against various groups, although the specific groups targeted and methods of extermination varied between the two.