He would replace retiring Justice Sandra Day O'Connor , a moderate who has been an important swing vote in many cases .