At least, that's how I read "when" entries. Maybe it's also ok to just say "I'm taking the attack action, but activate the bonus action immediately" and benefit from knockdown before the normal attack.
This gives a very significant edge in combat, which is why I'm reading it the way I do, but...