platform_data returns a DefaultInfo provider, discarding other providers from the original rule.
It also does not forward the args of the wrapped rule, so e.g. a py_binary with an args = [ ... ] parameter will not have its args provided when invoked through a platform_data rule.