Covariate balance is not what makes an experiment valid
Unbalanced cohorts do not invalidate an A/B test. What matters is that assignment was random and independent of anything that existed before the test. Includes why imbalance happens and a hash-based way to assign groups in PHP without a database lookup.