Yes M6, stainless looks best and is plenty strong enough. Suppose alloy would be ok as it doesn't do a lot once you've adjusted the headset because the bolts on the stem do the all the work.
When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.