I’m not sure the second is compatible with liberty either, unless you water it down to mean nothing. Do you stop parents from passing on good genes, education, values, and money? If not you’ve got a very impoverished version of equality of opportunity. If so you’re impinging on some very fundamental freedoms.