Cowgill's collision powers A's past Giants, 6-2