It depends on your algorithm.
Both ImageCapture and ImageAnalysis provide an image buffer which can be used with your HDR algorithm. ImageAnalysis provides a stream of frames, which is helpful if you are merging frames. But the buffer from ImageAnalysis is often lower resolution comparing to ImageCapture, which is not ideal to be used for photography. On the other hand, ImageCapture provides a single image buffer with the max resolution.