Should you justify or left-align text when writing?
Look for the specification and implement it.

In your particular case, your teacher specified that she prefers justifying, so you should act accordingly, since she is the one who will grade your essay.

Later in your academic career, you may come into situations where the format is specified by an institution rather than an individual person, for example, a journal or a funding agency.