Not possible.
The reason is that the first client requuest usually does not contain a cookie.
But the server will assign one.
To learn the cookie from the server, you need the connection to match the sticky cookie rule.
So even if the request has no cookie, you want to do cookie sticky so that we can learn the response from the server.
If your servers use static cookie, you could configure static entries and therefore the learning process is not required.
In this case, you could do a class-map to match the cookie name and any value.
If present, do cookie sticky.
If not, do src ip sticky.
This can be done with the following
class-map type http loadbalance match-all Cookie
2 match http cookie src cookie-value ".*"
policy-map type loadbalance http first SLB
class Cookie
sticky-serverfarm CookieSticky
class class-default
sticky-serverfarm IPSticky
Haven't tested however.
But this is how I would do it.
Gilles.