I agree that neither would look good in formal writing. Personally, I always write "OK", never "okay" but I can't give you a good reason why I do that.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: