That would likely pass muster under the commerce clause while the tax would be OK under the taxing power.
I think you are taking the analogy a bit too seriously here.
Actually, it was an absurdity, not an analogy. I was just having fun. I don't think either things would make it pass constitutional muster. The Commerce clause doesn't cover forcing you to participate in commerce.