When the verb is passive, the subject of the sentence receives the action. Polyneices was buried by Antigone. Both sentences look correct to me. Both sentences are correct. It's a matter of style.
Passive sentences are usually wordier, more pompous, and harder to understand than active sentences.
They lack the force of active sentences. Often you have no way of knowing who or what did the action. Polyneices was buried. High school teachers may not have taught the passive voice because they have more serious problems to comment on in the papers they grade. As the quality of your writing improves, teachers raise their expectations.