Did Bach Replace the Minuet with a Scherzo? No—That Came Later
No. The minuet-and-trio form was standard in Bach's time. The scherzo replaced the minuet in multi-movement works later, primarily by Beethoven and subsequent composers. Bach did not make this change.