Answer -
Purple Bacterium does photosynthesis but their byproduct is (Sulfur). In addition they do not use water instead they use hydrogen sulfide. Which you know makes sulfur.
Oak tree makes basic and provide glucose and oxygen as a byproduct and use H20, CO2 to make those by product.
Those are the two difference of reasoning and answer.