You can't do that with airflow, dynamic task mapping is about having N run of a task where N is decide at run time.
So if you have a pipeline task_a >> task_b
(where each is a dynamic task) airflow will run the N task_a then and only then the M task_b