Energy Saving Dilemma – Use natural light or indoor lighting in hot weather?

I know, I know. Everybody says to use natural light by opening windows instead of indoor lighting which requires electricity. Does this advice apply in hot weather, too?

Does the savings gained by using sunlight trump the costs of the AC running to remove the extra heat caused by the sunlight entering the house?