I know several people from western Canada that live openly trans and work without any issues. Don't give up because of a handful of bad employers and some bad experiences.
They added protection to the B.C. Human Rights Code in 2016 and there are a lot of protections Canada wide.
This is not an humble brag, this is your rights. You have the right to work in any field you want. In STEM we even have the opportunity to work remotely, which helps if you are too uncomfortable to be out in public.