RA4 is C2OUT with the 1st configuration you had so you couldn't use it for a digital output. With comparators disabled you can.

This should work fine to drive your LED on RA4 ---|<|---/\/\/--VCC.