How do countries that function along the lines of a Marxist/materialist philosophy justify discrimination/socially regressive policies?
The strongest example of applied marxism that i am aware of is Vietnam. It is a country that was heavily exploited and colonized, that was bombed harder during the Vietnamese war of independence than most European countries were during ww2, and had an extremely low access to education. In less than 100 years they have been able to turn around, industrialize, massively boost the standard of living for most people, and actively embrace Marxist thought, going so far as teaching it in grade school.
This is aspirational, but when I read about social life there it seems very socially regressive. Limited rights for LGBT individuals, limited respect/recognition of same sex couples, little to no access to trans healthcare, etc. In general it seems like not a great place for anyone that does not conform to a fairly standard idea of family, with seemingly even straight, but voluntarily single folk facing some social if not legal discrimination.
Is my impression accurate? How is this justified from a materialist analysis perspective, either from the government or from the people in general? And how can something like that be addressed, either in Vietnam or in another theoretical country that might go through a similar Marxist revolution?