This is a hard one. It turns out Oscars are monomorphic, which means that male and female look exactly the same; if both of them laid eggs it means they could be females
You could report their behavior, if they swim together it means they’re a couple (also if one of them swims near the surface of a flat stone and lays eggs there it’s female) but I’m kinda confused about something... When you bought them, were both of them adults or were they babies? Did both of them have eggs or did the breeding happen shortly after? Hope that with this questions we are able to determine if they’re he or she
Your fish look very healthy and content!