A buyback is almost the same as a dividend, with minor differences around tax and effects on derivative pricing.
And ASML has been paying out a dividend for a long time.