It depends on the volume and mass and material of what you are trying to cool versus the cross sectional area of the solar panels times the cosine of the angle of incidence
If a house would be a higher temperature because of sunlight then the extra energy it takes to cool a house to the same temperature could be less than the extra energy the solar panels