QUICK ANSWER
"Ay" is a form of "ay", an interjection which is often translated as "ow". "Por Dios" is a phrase which is often translated as "please". Learn more about the difference between "ay" and "por Dios" below.
ay(
ay
)An interjection is a short utterance that expresses emotion, hesitation, or protest (e.g., Wow!).
b. jeez (colloquial)
A word or phrase that is commonly used in conversational speech (e.g., skinny, grandma).
¡Ay! Me asustaste.Jeez! You scared me.
A masculine noun is used with masculine articles and adjectives (e.g., el hombre guapo, el sol amarillo).
por Dios(
pohr
dyohs
)A phrase is a group of words commonly used together (e.g., once upon a time).
b. for heaven's sake
Por Dios, Lidia, ¿no puedes hacer un poco menos de ruido?Oh, for heaven's sake, Lidia, can't you make a little less noise?