a mixed and varied diet is far better than 2 types of food. Yes pellets are good and i think should make up about 60% of the diet as pellets contain most vitamins needed by the fish. you add meal worm,earth worm,grass hopper,bloodworm,peas,lentils. the last 2 will help with constipation. Peas are very good for this and are a good size to feed to Oscars.
What leads you to think its constipated. how much are you feeding. for a full grown Oscar its not really needed to feed every day.Lastly is its abdomen swollen. It could take a few days to digest a large shrimp.