Depends on the program you are in. The view from being a doctoral student to being a postdoc to being research/lecturing staff is very different. Not all advisors expose their students to the realities of higher levels of academia. And when a woman or minority is being mentored by a white man, they may not be aware of biases that can affect the student’s later career.
My wife made this joke during a presentation that was part of a job interview. Nobody laughed. Clear sign of a toxic environment.