Contribute the maximum allowed, then sell ASAP after the shares are available to you and invest the proceeds according to your desired asset allocation.
See also Your 1099-B form for an ESPP sale will probably be wrong, although because you already understand that there are non-qualified vs. qualified ESPPs you may know about the 1099-B issue already.