The problem with using Acts as doctrine is, as others have mentioned, is that its a transitional time where the Jewish program was being phased out, to be replaced by the program that is now open to both Jews and Gentiles.
So when you use Acts 19, in this case, Paul met some disciples who told him they were baptised by John's baptism. That gives you a clue that they were under the Jewish program, since John preached the gospel of the kingdom (Matthew 3:2).
Under that program, the Holy Spirit does not come to them immediately after they believed (Acts 2:38, Mark 16:16).
But we are not under that program now, so if you find that Ephesians 1 passage contradict what you read in Acts 19, you should be taking that Ephesians passage as the correct salvation doctrine for all of us today.