Let's say I have a 20MP RAW image, that I know will be used scaled down. I can think of several reasons why I would know that for sure: it will be published on the web, it will only be displayed on screens/media of limited resolution, file size restrictions etc. I can always keep the RAW, but let's assume I want a downscale version at the moment, with less than quarter the size, so <5MP.
I understand that 20MP of Bayer data represents somewhat more information than a 5MP RGB, so it is generally worthwhile to exploit this and try to reconstruct a full 20MP RGB image. This is still an approximation however, and several advanced algorithms have been in use for demosaicing, to try to tackle the artifacts created in this step.
Now my intuition would say, that in the <5MP case in my example, demosaicing could also be done with a trivial 4-pixel grouping (with averaging on the green channel) or something similar, and it would still yield a reasonable result for 1:4, that could be scaled down further as needed. Alternatively, it would even be possible to do it in a one-step downsampling method with arbitrary target dimensions.
In two of the widely used RAW editors (darktable and RawTherapee) I was not able to find an option to set the size target of demosaicing, they always do full resolution it seems. First of all, of course it would be appreciated if anyone could point to a software package that has this option. But I think the main question remains: are there any advantages of downscaling from the full resolution, even if it was reconstructed from Bayer data? Would it be possible, that the feature I have mentioned is just simply not implemented because it does not matter much when scaled down further, and it can be done in two steps with similar results anyway?