The statement that accurately 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.
While both regimes were responsible for horrific atrocities, they had different ideologies and targeted different groups for extermination. The Nazis primarily focused on racial ideologies centered around Aryan superiority, leading to the Holocaust, while Imperial Japan also engaged in brutal warfare justified by notions of racial superiority, particularly against Asian countries and populations.