Why would this affect legality?
The legality of a mandate is to protect the general public
As per the 1905 supreme court ruling -
Harlan ruled that the vaccination law did not violate the 14th Amendment because the police power of the state may be allowed to constrain individual liberties through reasonable regulations when required to protect public safety
And for OSHA to enforce - it would have to be that it's protecting others etc.