I teird something like this with a data element containing two different data streams, but unfortunately it doesn't change during the sessions, and whatever was first set at the begining of the session is there despite the data element value changing based on consent.