>>8621746 lb
It is a mistake to compare molecules and then assume that THC can be used instead of Hydroxychoroquine. That is NOT how biochemistry works. The most you can learn is that it might be a good idea to test THC in experiments.
To learn what THC can really do against malaria, read this. It is a mixed message.
https://sensiseeds.com/en/blog/can-cannabis-help-treat-and-possibly-even-prevent-malaria/
But you are probably specifically interesting in SARS-CoV-2
What can cannabinoids do here. The answer is again mixed. There are some effects but nothing as miraculous as hydroxychloroquine.
https://newfrontierdata.com/cannabis-insights/cbd-versus-viruses-what-do-we-really-know/