Steering on-surface reactions through molecular steric hindrance and molecule-substrate van der Waals interactions