Should I go with test optional?

Before test scores were released, I was planning to go test-optional and send an ap lit essay that I got 90 on (notoriously hard teacher; few As were given out for this assignment). The essay analyzes the character of Hamlet’s Ophelia. However, I found out I made a 31 on my ACT (R: 31, E: 34, M: 27, S: 31) so I was wondering what would be better to send?

Your ACT score is really good, I’d suggest submitting that.