Thankfully, if you follow this guide, you'll get the best ending, as it requires you to complete a pacifist run of the game.