I would argue that the letter is not pronounced at all -- certainly not as a separate vowel.
"Boy" is a one syllable word. The "oy" is pronounced as one particular sound, not as an "o" sound followed by a "y" sound.
Same thing with "oil." There are large variations on how this word is pronounced in different dialects. But, generally, the "oi" is the same as in "boy."