Grdmask and grdsample produce different grids with same region and grid spacing

Looks like you forgot to post what you actually tried and for some reason I am completely unable to guess what you did not write. FYI, GMT modern mode lets you select your output format, e.g., PDF, EPS, JPG etc.