An injured Serena Williams said she was "almost relieved" to be put out of her misery by Sloane Stephens at the Australian Open.