I think you have a typo in your first model, as you are not using the Dropout layer in forward:
x - self.dropout(x)

This should probably be an assignment instead of a subtraction.
You will get exactly the same output, if you fix this typo and seed all operations accordingly:
torch.manual_seed(2809)
modelA = LeNetA()
torch.manual_seed(2809)
modelB = LeNetB()

x = torch.randn(2, 1, 32, 32)
torch.manual_seed(2809)
outputA = modelA(x)
torch.manual_seed(2809)
outputB = modelB(x)