Compound nucleus fission and quasi-fission in reactions of 238U with 16O and 27Al