The English spelling system, if you can even call it a system, is full of this kind of thing.
Those two options cover most of it – except for a handful of cases, where it’s ‘ay’ ( break, steak, great). The ea vowel is usually pronounced ‘ee’ ( weak, please, seal, beam) but can also be ‘eh’ ( bread, head, wealth, feather). When you see an ough, you might need to read it out as ‘aw’ (thought), ‘ow’ (drought), ‘uff’ (tough), ‘off’ (cough), ‘oo’ (through), or ‘oh’ (though).