Prompt $D^0$ elliptic flow comparison from semicentral Pb--Pb to central OO collisions