Could mirrors be replaced with CCDs?
The CCD has no way of recording the direction, the point in the sky, from which a photon is coming. 

Say you point your mirror-less telescope at the Moon.  Every point on the moon's surface would be reflecting photons onto every part of the CCD at the same time.

You've just created an expensive, sensitive, ambient light meter. There would be no image information whatsoever.