I wouldn't know what the Masons teach. Masonic stuff is supposed to be secret, and I'm not a Mason.
The history of the Catholic church is just that, history.
There have been many good people, who have belonged to a wide variety of churches, who have done good works down through the ages. To those individuals go the credit, not to any bureaucracy to which they happened to be attached.
Just today, you can see the Republican High Priests jumping in to take credit for a success that they so recently opposed, until the people overwhelming overruled them.
Church organizations and political organizations are not so different. A handful of ruling self-anointed elitists continue to drain the resources of their people, while operating to their detriment.
Ah it is your own bigotry then, not something you learned?